This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- This sends an event to the Maker IFTTT channel, replace blue_flash_all with | |
| -- whatever you like but make sure that URL is saying wherever you use it. | |
| set theURL to "https://maker.ifttt.com/trigger/blue_flash_all/with/key/YOUR_SECRET_KEY" | |
| do shell script "curl " & quoted form of theURL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Open up the PopClip overlay on any selected text | |
| tell application "PopClip" to appear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Bring Screen Sharing.app to the front and start VNC session | |
| tell application "Screen Sharing" | |
| activate | |
| GetURL "vnc://[email protected]" | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set the date_stamp to ((the current date) as string) | |
| tell application "Growl" | |
| -- Make a list of all the notification types | |
| set the allNotificationsList to ¬ | |
| {"Date and Time"} | |
| --Default enable notifications | |
| set the enabledNotificationsList to ¬ | |
| {"Date and Time"} | |
| --register with growl | |
| register as application ¬ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "QuickTime Player" | |
| if document 1 is playing then | |
| pause document 1 | |
| else | |
| play document 1 | |
| end if | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| tell application "iTunes" | |
| previous track | |
| -- user probably expects to hear something so if we are not playing, make it play | |
| if player state is not playing then | |
| play | |
| end if | |
| end tell | |
| on error -- if there is an error then beep | |
| beep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| tell application "iTunes" | |
| next track | |
| -- user probably expects to hear something so if we are not playing, make it play | |
| if player state is not playing then | |
| play | |
| end if | |
| end tell | |
| on error -- if there is an error then beep | |
| beep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set crlf to (ASCII character 13) & (ASCII character 10) | |
| set escapeChar to ASCII character (9) | |
| tell application "Growl" | |
| -- Make a list of all the notification types | |
| -- that this script will ever send: | |
| set the allNotificationsList to {"iTunes Playing Track"} | |
| -- Make a list of the notifications | |
| -- that will be enabled by default. | |
| -- Those not enabled by default can be enabled later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| -- Specify the application will want to work on, in this case iTunes. | |
| tell application "iTunes" | |
| -- Get iTunes current state | |
| if player state is paused then | |
| -- If iTunes is paused, press play. | |
| play | |
| -- Get iTunes state if it doesn't match the first condition | |
| else if player state is playing then | |
| -- If iTunes is playing, press pause. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| -- Specify the application will want to work on, in this case iTunes. | |
| tell application "iTunes" | |
| -- Get iTunes current state | |
| if player state is paused then | |
| -- If iTunes is paused, press play. | |
| play | |
| -- Get iTunes state if it doesn't match the first condition | |
| else if player state is playing then | |
| -- If iTunes is playing, press pause. |