Last active
September 20, 2015 05:15
-
-
Save jsejcksn/e07bbf7a4344fa5443cc to your computer and use it in GitHub Desktop.
AppleScript Snippets
This file contains 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
(* | |
Tested on OS X 10.10 | |
*) | |
tell application "Terminal" | |
activate | |
do script "rsync -aEh --delete --exclude=PATTERN --progress '/path/to/source' '/path/to/destination'" | |
end tell |
This file contains 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
repeat 1 times | |
tell application "Sublime Text" to activate | |
delay 0.2 | |
tell application "System Events" | |
keystroke "g" using command down | |
key code 124 using {command down, shift down} | |
key code 124 using shift down | |
keystroke "x" using command down | |
key code 125 | |
keystroke "v" using command down | |
end tell | |
end repeat | |
tell application "Script Editor" to activate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment