Last active
May 28, 2020 11:27
-
-
Save mingsai/87f52f02423b308cb1e84c470ff6cf36 to your computer and use it in GitHub Desktop.
Applescript - Escaping double quotes around variable text
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 myString to "This is a \"quoted\" text." | |
Sample usgage: | |
on run {input, parameters} | |
set filename to item 1 of input | |
set desc to "\"" & item 2 of input & "\"" | |
--display dialog filename & desc | |
(* Your script goes here *) | |
do shell script "/usr/local/bin/gist -P -f " & filename & " -e -d " & desc | |
--return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment