I am trying to get the time tracking service Hubstaff (http://www.hubstaff.com) to "Start Working" when I type in hubstaff. Here's my script:
on alfred_script(q)
tell application "Hubstaff" to activate
tell application "System Events"
tell process "Hubstaff"
click menu item "Start Working"
end tell
end tell
end tell
end alfred_script
I think the issue is that I'm not finding the proper menu. When I select Hubstaff, it doesn't activate it's own items on the menu bar. Rather, you access Hubstaff using it's icon in the menubar. How do I reach that menu with AppleScript?
Thanks for your help!