Skip to content

Instantly share code, notes, and snippets.

@bfirsh
Created April 20, 2011 18:50
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 bfirsh/932303 to your computer and use it in GitHub Desktop.
Save bfirsh/932303 to your computer and use it in GitHub Desktop.
Voice deploy!
-- 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