Skip to content

Instantly share code, notes, and snippets.

@magomi
Created June 18, 2013 09:31
Show Gist options
  • Save magomi/5803975 to your computer and use it in GitHub Desktop.
Save magomi/5803975 to your computer and use it in GitHub Desktop.
change adium status
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