0

I need to call a Share menu item from Apple Script. For example I'd like to share a website to the Notes app.

But I cannot find out which process to activate. I'm able to display the Share menu, but cannot select a menu item.

This is just to clarify what I want:

tell application "System Events" to tell process "Safari"
    activate
    -- Menü "Ablage" öffnen
    click menu item "Share …" of menu "Files" of menu bar 1
    delay 0.5
    click menu item "Notes" of menu item "Share …" of menu "Files" of menu bar 1
end tell
2
  • Maybe you can post more details of the problem and your effort to fix it. Commented May 31 at 15:36
  • I put some example code into my post. Code cannot be entered correctly into this comment. Commented Jun 2 at 10:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.