I've written an Applescript that sets various IM clients to away, closes iTunes, and then starts my screensaver.
tell application "Adium"
go away
end tell
tell application "Skype"
send command "SET USERSTATUS AWAY" script name "StatusSetter"
end tell
tell application "iTunes"
if player state is playing then
pause
end if
end tell
activate application "ScreenSaverEngine"
It's a password protected screensaver, and I'm trying to (once the screensaver has gone away) do the reverse. Obviously the 'tell' actions for each application are not a problem, but I can't seem to find out how to do these once the screen has been unlocked. I did assume this would be the same as a LoginItem, but it's not.
Any help appreciated!