Skip to content

Instantly share code, notes, and snippets.

@AarneHuttunen
Created February 3, 2017 12:59
Show Gist options
  • Save AarneHuttunen/fda79cfba59a0fa85cdf16cd89f60b15 to your computer and use it in GitHub Desktop.
Save AarneHuttunen/fda79cfba59a0fa85cdf16cd89f60b15 to your computer and use it in GitHub Desktop.
Simple applescript workflow to open specific Google profile in Chrome and open a fixed set of urls.
activate application "Google Chrome"
tell application "System Events"
tell process "Google Chrome"
click menu item "Name of your profile" of menu 1 of menu bar item "People" of menu bar 1
end tell
open location "http://example.com"
open location "http://anotherexample.com"
end tell
@jesseleey5
Copy link

Hi there! I got this error that says " The action “Run AppleScript” encountered an error: “System Events got an error: Can’t get menu bar item "People" of menu bar 1 of process "Google Chrome". Any idea what I'm doing wrong here?

Screen Shot 2023-02-18 at 11 51 01 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment