Skip to content

Instantly share code, notes, and snippets.

@warthurton
Created June 7, 2014 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warthurton/8e70bcde9d76e5d4f741 to your computer and use it in GitHub Desktop.
Save warthurton/8e70bcde9d76e5d4f741 to your computer and use it in GitHub Desktop.
on alfred_script(q)
tell application "System Events"
set numChrome to count (every process whose name is "Google Chrome")
if numChrome > 0 then
tell process "Google Chrome"
click menu item "pbrl" of menu "Bookmarks" of menu bar 1
end tell
end if
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment