Is it possible that one has to CREATE the file MyDiskImage.dmg before one can ATTACH items such as a user folder to it? That might explain why I'm getting the "no such file" error message. Regards, Chuck On Jan 15, 2006, at 4:13 PM, John Delacour wrote: > At 3:16 pm -0700 15/1/06, Chuck Pelto wrote: > >> On Jan 13, 2006, at 10:02 AM, Barry Wainwright wrote: >> >>> Do shell script "hdiutil attach '/Users/MyName/Documents/ >>> MyDiskImage.dmg'-readonly" >> >> This syntax does not seem to work very well. >> >> I've used '/Users/whatgoesformyname/Documents/TestDiskImage.dmg'- >> readonly and I get error messages about "no such file". >> >> The naming of the path IS correct. > > > Are you _sure_? It works in every case for me so long as the path > is right. Are you sure you're not _both_ escaping spaces _and_ > enclosing in quotes. You can do one or the other but not both, and > since you don't tell us what your correct path is, it's impossible > to say what's wrong. > > > do shell script¬ > "cd; hdiutil attach -readonly 'Downloads_060101/Eudora 6.2.3.dmg'" > > OR > > do shell script ¬ > "cd; hdiutil attach -readonly Downloads_060101/Eudora\\ 6.2.3.dmg" > > JD >