I use Applescript in combination with Alfred to provide a keyboard shortcut to start and stop the timer in Billings . This is really useful for my tracking of my freelance work.
Here is the code I'm using:
tell application "Billings" to activate
tell application "System Events"
tell process "Billings"
tell menu bar 1
tell menu bar item "Slips"
tell menu "Slips"
if menu item "Start Timer" exists then
click menu item "Start Timer"
else
click menu item "Stop Timer"
end if
end tell
end tell
end tell
keystroke "h" using {command down}
end tell
end tell
I got it in the Alfred extension for activation using CTRL + ALT + CMD + T.
Unfortunately, this is a little awkward. Until yesterday, I never touched Applescript, so I'm afraid my chops are a bit poor. The Billings window instantly appears in the foreground and then hides again. It will also not hide if modifier keys other than H are pressed on the keyboard.
In this way:
:
- OSX. , , , . . ( , ) . , Billings , . : 