Skip to content

Instantly share code, notes, and snippets.

@rioter00
Created May 23, 2015 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rioter00/f46e6948fca2196b2ae1 to your computer and use it in GitHub Desktop.
Save rioter00/f46e6948fca2196b2ae1 to your computer and use it in GitHub Desktop.
open and quit functions
-- The open and close functions
on runApp()
tell application "Sandra_Sound"
if it is not running then
activate
--display alert "opened Application"
end if
end tell
end runApp
on killApp()
tell application "Sandra_Sound"
if it is running then
quit
--display alert "closed Application"
end if
end tell
end killApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment