Created
February 3, 2017 12:59
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?