Skip to content

Instantly share code, notes, and snippets.

@Stichoza
Created February 4, 2016 06:35
Show Gist options
  • Select an option

  • Save Stichoza/f83d5f8ca3b00d7dde16 to your computer and use it in GitHub Desktop.

Select an option

Save Stichoza/f83d5f8ca3b00d7dde16 to your computer and use it in GitHub Desktop.

Revisions

  1. Stichoza created this gist Feb 4, 2016.
    20 changes: 20 additions & 0 deletions APP3null.scpt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    set currentTime to current date

    if the weekday of currentTime is Saturday or the weekday of currentTime is Sunday then
    display notification "It's " & weekday of currentTime & "! Poor you!" with title "APP3null GmbH"
    end if

    set volume output volume 30

    tell application "Mail" to activate

    tell application "System Events" to set SkypeIsRunning to (count of (every process whose name is "Skype")) > 0

    if not SkypeIsRunning then
    tell application "Skype" to activate
    delay 15
    end if

    tell application "Skype"
    send command "SET USERSTATUS ONLINE" script name "A3N"
    end tell