0
I wrote a shell script which calls an applescript to do some work. The applescript is in iCloud, so I'm manually writing the path to the document storage location...
osascript ~/Library/Mobile\\ Documents/com~apple~ScriptEditor2/Documents/safari_get_tab_url.scpt
This is pretty ugly and looks fragile. I'm wonder if there is a cleaner way to get the path to this applescript file?
You can use quotes to cleanup the path for both bash and zsh shells. Depending on version, this will allow the ability to remove the \ before spaces in the path. – Jahhein – 2017-10-13T19:40:48.617