I have been trying to piece together an AppleScript to save images or videos from imgur.com, but I haven't had much success so far. My knowledge of AppleScript is very basic so the fix is probably something simple.
I figured out the coordinates of where the cursor are when I load a video on imgur. I want to do a right mouse click, save as and then hopefully have the script automatically save it for me when the save dialogue appears.
So far I have this:
Which gives me the following error:
As I said, I have no knowledge of AppleScript so I can't figure out the fix is. Any help / troubleshooting would be great!
I'm using AppleScript Version 2.11 (229) AppleScript 2.8.
I figured out the coordinates of where the cursor are when I load a video on imgur. I want to do a right mouse click, save as and then hopefully have the script automatically save it for me when the save dialogue appears.
So far I have this:
AppleScript:
tell application "System Events"
tell process "Google Chrome"
click at {725, 550}
set _selection to value of attribute "AXFocusedUIElement"
tell _selection to perform action "AXShowMenu"
end tell
end tell
Which gives me the following error:
AppleScript:
[B]error[/B] "Can’t get action \"AXShowMenu\" of missing value." number -1728 from «[I]class[/I] actT» "AXShowMenu" [B]of[/B] [I]missing value[/I]
As I said, I have no knowledge of AppleScript so I can't figure out the fix is. Any help / troubleshooting would be great!
I'm using AppleScript Version 2.11 (229) AppleScript 2.8.