Skip to content

Instantly share code, notes, and snippets.

@kevinfoerster
Created October 7, 2011 11:54
Show Gist options
  • Save kevinfoerster/1270132 to your computer and use it in GitHub Desktop.
Save kevinfoerster/1270132 to your computer and use it in GitHub Desktop.
set file_path to POSIX path of theFile
set file_name to (do shell script "basename " & quoted form of file_path)
set file_name to do shell script "php -r 'echo trim(rawurlencode(" & "\"" & file_name & "" & "\"));'"
do shell script "echo 'http://dl.getdropbox.com/u/12345/'" & quoted form of file_name & "| pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment