Keeping Skype away for sometime in OSX
This is a small AppleScript for keeping Skype in DND mode during lecturing or giving a talk and automatically put it back. It accepts the number of minutes from command line, sends Skype in DND and then at the end put it back online. The snippets at the beginning and end can be used to manually controlling the status via command line. The accepted options are "AWAY/OFFLINE/DND/ONLINE".
on run durationmin tell application "Skype" send command "SET USERSTATUS DND" script name "My Script" end tell set durationsec to durationmin*60 set startTime to current date delay durationsec set elapsedTime to ((current date) - startTime) tell application "Skype" send command "SET USERSTATUS ONLINE" script name "My Script" end tell end run