Created
April 20, 2011 18:50
-
-
Save bfirsh/932303 to your computer and use it in GitHub Desktop.
Voice deploy!
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
-- Deploy.applescript | |
-- | |
-- Deploys the current directory opened in Finder to ep.io | |
-- | |
-- To install, run: | |
-- | |
-- $ osacompile -x -o "$HOME/Library/Speech/Speakable Items/Deploy" "Deploy.applescript" | |
-- | |
-- Go to System Preferences and open the Speech panel. In the "Speech Recognition" | |
-- tab, turn "Speakable Items" on. | |
-- | |
-- Open the directory you wish to deploy in the finder. Press the escape key, then say "deploy". | |
tell application "Finder" to get folder of (front window) as Unicode text | |
set deployPath to POSIX path of result | |
tell application "Terminal" | |
do script "cd \"" & deployPath & "\"; epio upload" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment