Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to mount, run, unmount a disk image' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to mount, run, unmount a disk image
Authored by: bryanc on Jan 04, '07 06:40:49PM

The reason for this is that there are two layers of escaping needed. 1) Applescript uses the \ character to escape things in any string; and 2) the shell itself uses \ to escape things.

So, when inside a string Applescript sees the \ character, it wants the next character to be a valid escape character. You actually want a literal \ in the string (so that the shell will see it, and treat is as an escape character).

property unixdiskname : "Reader\\ Rabbit\\ Toddler"

will do the trick for you.



[ Reply to This | # ]
An AppleScript to mount, run, unmount a disk image
Authored by: bryanc on Jan 04, '07 06:42:54PM
That was supposed to be a reply to this thread of comments earlier on the page.

[ Reply to This | # ]