Created
October 7, 2011 11:54
-
-
Save kevinfoerster/1270132 to your computer and use it in GitHub Desktop.
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
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