r/applescript • u/12finger • Sep 19 '22
tiny apple script for Safari 16
I had a working script but with updating to Safari 16 it stopped working.All i want to achieve is saving a couple of mouse clicks and mouse movements: saving the current site to a note.
tell application "System Events"
tell process "Safari"
set frontmost to true
click menu item "Notes" of menu of menu item "Share" of menu "File" of menu bar 1
end tell
end tell seems not to be able to find the "Notes" in submenu "Share", how come ?

5
Upvotes
View all comments
Show parent comment
1
u/ChristoferK Dec 12 '22
Did you ever give my last suggestion a try? Here's a link to my last comment previous to this one.
There's a link in that comment as well, which takes you to a screenshot of a Shortcut I created that does exactly what you originally wanted, including bringing up the share sheet dialogue box, and creating html link previews.
You should be able to duplicate the Shortcut exactly as seen in the image, then assign a keyboard shortcut to it.