Last active
April 18, 2020 00:45
-
-
Save 2b3pro/b3863fed49f814e42d077672f7c71f7c to your computer and use it in GitHub Desktop.
TextExpander AppleScript to get TinyUrl
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 the ClipURL to (the clipboard as string) | |
ignoring case | |
set curlCMD to "curl --stderr /dev/null \"http://tinyurl.com/api-create.php?url=" & ClipURL & "\"" | |
set tinyURL to (do shell script curlCMD) | |
return tinyURL | |
end ignoring |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment