On Oct 17, 2013, at 9:30 AM, Walter Bushell started the thread "On the difficulties of "/"" in Applescript with example". I just got a message from Walter concerning this current thread. It prompted me to experiment a bit.
On my desktop, I named a file "some "file".rtf". Notice the quotes within the file name.
When I drag & drop this file into a Smile script window, I get …
alias "OS_X:Users:lutherfuller:Desktop:some \"file\".rtf"
If I then log this '… as text', I get ...
OS_X:Users:lutherfuller:Desktop:some "file".rtf
If I do the same in ASE, I get …
/Users/lutherfuller/Desktop/some "file".rtf
I rewrite this as …
posix file "/Users/lutherfuller/Desktop/some "file".rtf"
which gives a syntax error. In order to avoid the error, I have to insert
slashes before the internal quotes to get …
POSIX file "/Users/lutherfuller/Desktop/some \"file\".rtf"
I can use the work around, described in my original post, to convert this to an alias.
This is a confusing behavior in ASE that can be worked around, but it's simpler to use Smile.