Last active
November 14, 2015 20:33
-
-
Save PiiXiieeS/4c33b59e8c6140c6f95b to your computer and use it in GitHub Desktop.
Grab the clipboard link to an image in dropbox and change the URL to the direct link to the image
This file contains hidden or 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 strclipboard to (get the clipboard) as string | |
set commandString to "echo " & strclipboard & " | sed 's/www.dropbox.com/dl.dropboxusercontent.com/g'" as string | |
set formattedCode to do shell script commandString | |
set the clipboard to formattedCode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment