I found this really useful bash script that uploads a file to Google Drive using CURL and I want to convert it to Applescript. The hardest part that I’m having a challenge with is trying to string together the CURL commands because of all of the " in the command. Is there any trick or easy way to convert command lines for do shell script? Thanks
I have made a script that escapes a commandline from a terminal window into a properly escaped command line for the do shell script command. The script is in post #8 in This thread.
Running what you have posted through the script, the result looks like this:
It works like this:
You copy the contents of a commandline, or from a file onto the clipboard and run the script, if you are happy with it, or want to actually paste the escaped contents back to the clipboard, then you’ll press the “clipboard” buttons. -I know the buttons look awkward, but it is done so in order to let you see as much as possible of a single line.