I'm trying to extract the list of cookies according to Safari.
I have the following code fragment:
tell application "Safari" to activate tell application "System Events" to tell process "Safari" keystroke "," using command down -- display preferences delay 1 click button "Privacy" of toolbar 1 of window 1 delay 2 -- let the cookie count update click button "Details…" of group 1 of group 1 of window "Privacy" get <what??> of row 1 of table 1 of scroll area 1 of sheet 1 of window "Privacy" end tell
Which is fine except that I can find no way to get the cookie name from the row. Tantalisingly, however, VoiceOver can read the value and Accessibility Inspector shows it to be held in the
Hence the question: is there a way of getting the value of the
accessibilityLabel attribute in AppleScript?
Versions: Safari 9.0 / El Capitan.
PS: I know there is a Cookies.binarycookies file in the user's library. I'd still like the answer to my question for future reference at least!