Instantly share code, notes, and snippets.

Embed
What would you like to do?
applescripts for pomodoro.app
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 "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 "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 "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 "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
@vrybas

This comment has been minimized.

Show comment
Hide comment
@vrybas

vrybas Aug 15, 2012

Awesome! I'll add "Messages" status changes in my fork. Is there any way to on/off notifications in Mountain Lion's Notification Center?

vrybas commented Aug 15, 2012

Awesome! I'll add "Messages" status changes in my fork. Is there any way to on/off notifications in Mountain Lion's Notification Center?

@vrybas

This comment has been minimized.

Show comment
Hide comment
@vrybas

vrybas Aug 16, 2012

Found the solution for Notification Center
https://gist.github.com/3355255#file_end.scpt

vrybas commented Aug 16, 2012

Found the solution for Notification Center
https://gist.github.com/3355255#file_end.scpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment