Created
June 18, 2013 09:31
-
-
Save magomi/5803975 to your computer and use it in GitHub Desktop.
change adium status
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 "AppleScript Runner" | |
set temp to display dialog "new status" default answer "away, ..." | |
end tell | |
set newStat to the text returned of temp | |
set AppleScript's text item delimiters to {","} | |
set statusType to the first text item of newStat | |
set statusMessage to the second text item of newStat | |
tell application "Adium" | |
if (statusType = "aw" or statusType = "away") then | |
set the status type of every account to away | |
set the status message of every account to statusMessage | |
else if (statusType = "av" or statusType = "available") then | |
set the status type of every account to available | |
set the status message of every account to statusMessage | |
else if (statusType = "bu" or statusType = "busy") then | |
set the status type of every account to away | |
set statusMessage to "Workitem: " & statusMessage | |
set the status message of every account to statusMessage | |
else | |
set the status type of every account to available | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment