-
-
Save vrybas/3355255 to your computer and use it in GitHub Desktop.
applescripts for pomodoro.app
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
tell application "Finder" | |
if (name of every application process) contains "Skype" then | |
tell application "Skype" | |
send command "SET USERSTATUS ONLINE" script name "pomodoro" | |
send command "SET PROFILE MOOD_TEXT " script name "pomodoro" | |
end tell | |
end if | |
end tell | |
tell application "Twitter" to activate | |
tell application "Notify" to activate | |
tell application "Messages" | |
set status to available | |
end tell | |
tell application "System Events" | |
tell process "Notification Center" | |
key down option | |
click first menu bar's first menu bar item | |
key up option | |
end tell | |
end tell | |
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
tell application "Finder" | |
if (name of every application process) contains "Skype" then | |
tell application "Skype" | |
send command "SET PROFILE MOOD_TEXT Available in $time minutes" script name "pomodoro" | |
end tell | |
end if | |
end tell | |
tell application "Messages" | |
set status message to "Busy. Available in $time min. Leave a message" | |
end tell |
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
tell application "Finder" | |
if (name of every application process) contains "Skype" then | |
tell application "Skype" | |
send command "SET USERSTATUS ONLINE" script name "pomodoro" | |
send command "SET PROFILE MOOD_TEXT " script name "pomodoro" | |
end tell | |
end if | |
end tell | |
tell application "Messages" | |
set status to available | |
end tell | |
tell application "System Events" | |
tell process "Notification Center" | |
key down option | |
click first menu bar's first menu bar item | |
key up option | |
end tell | |
end tell |
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
tell application "Finder" | |
if (name of every application process) contains "Skype" then | |
tell application "Skype" | |
send command "SET USERSTATUS ONLINE" script name "pomodoro" | |
send command "SET PROFILE MOOD_TEXT " script name "pomodoro" | |
end tell | |
end if | |
end tell | |
tell application "Twitter" to activate | |
tell application "Notify" to activate | |
tell application "Messages" | |
set status to available | |
end tell | |
tell application "System Events" | |
tell process "Notification Center" | |
key down option | |
click first menu bar's first menu bar item | |
key up option | |
end tell | |
end tell |
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
tell application "Finder" | |
if (name of every application process) contains "Skype" then | |
tell application "Skype" | |
send command "SET USERSTATUS DND" script name "pomodoro" | |
send command "SET PROFILE MOOD_TEXT Available in 25 minutes" script name "pomodoro" | |
end tell | |
tell application "System Events" | |
set visible of process "Skype" to false | |
end tell | |
end if | |
end tell | |
tell application "Twitter" to quit | |
tell application "Notify" to quit | |
tell application "Messages" | |
set status to away | |
set status message to "Busy. Available in $duration min. Leave a message" | |
end tell | |
tell application "System Events" | |
tell process "Notification Center" | |
key down option | |
click first menu bar's first menu bar item | |
key up option | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment