If you don't like signing into Skype and being bombarded with calls, this hint can help. You can run an AppleScript as your Mac goes to sleep, setting the Skype status to a preferred state, like invisible. When your Mac wakes up, you'll still be invisible. You can use the SleepWatcher utility which has been mentioned on this site many times to kick off the script. Here are the steps:
Run both the installers in the SleepWatcher download. One installs the files on your disk, the other configures a startup item so SleepWatcher is always running. Now create a text file called .sleep in your Home folder. Enter the following line in the file:
Now create an AppleScript and name it invisible.scpt. Paste in this code:
Here's a script download and screencast with even more detail -- especially useful if you're not comfortable with Terminal. There's a lot you can do with Skype by following the published API.
Run both the installers in the SleepWatcher download. One installs the files on your disk, the other configures a startup item so SleepWatcher is always running. Now create a text file called .sleep in your Home folder. Enter the following line in the file:
osascript invisible.scpt
Make .sleep executable by typing chmod +x .sleep, then press Enter.Now create an AppleScript and name it invisible.scpt. Paste in this code:
(* Created by Murphy Mac, February 2007
http://murphymac.com
Murphy Mac not responsible for any damages
caused by the use of this script.
*)
tell application "System Events" to (name of processes) contains "Skype"
if the result is true then
tell application "Skype"
send command "SET USERSTATUS Invisible" script name "My Script"
end tell
end if
The script checks to see if Skype is running. If Skype is running, the status is changed to invisible. Otherwise the script exits. Copy the AppleScript file to your home folder. That's it. Skype remembers your previous status, so you'll wake up the way you went to sleep.Here's a script download and screencast with even more detail -- especially useful if you're not comfortable with Terminal. There's a lot you can do with Skype by following the published API.
•
[13,195 views]

