Created
August 2, 2011 06:58
-
-
Save mkb/1119718 to your computer and use it in GitHub Desktop.
Colloquy away/back scripts for Pomodoro.app
This file contains 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 "System Events" to if exists process "Colloquy" then | |
tell application "Colloquy" | |
set aC to every connection | |
repeat with c in aC | |
set aR to (every chat room of c) | |
repeat with r in aR | |
set away message of c to "" | |
end repeat | |
end repeat | |
end tell | |
end if |
This file contains 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 "System Events" to if exists process "Colloquy" then | |
tell application "Colloquy" | |
set aC to every connection | |
repeat with c in aC | |
set aR to (every chat room of c) | |
repeat with r in aR | |
set away message of c to "Pomodoro" | |
end repeat | |
end repeat | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment