Re: Getting A Folder On An Image Disk
Re: Getting A Folder On An Image Disk
- Subject: Re: Getting A Folder On An Image Disk
- From: Luther Fuller <email@hidden>
- Date: Wed, 18 Jan 2012 10:53:35 -0600
On Jan 18, 2012, at 10:14 AM, KOENIG Yvan wrote:
> Maybe :
> set chemin to "Macintosh HD:Important:Tout Gerbino:base ebayĆ’.sparseimage"
> do shell script "hdiutil attach " & quoted form of POSIX path of chemin
Won't work. It's important to notice that an alias FILE is involved. An alias file does not include any knowledge of the existence, or not, of an image file. If 'original item ...' fails it may be due to an unmounted disk of any kind or perhaps the target is simply missing.
The purpose of the inner 'try' block is to mount the disk if possible. Mounting the disk may not be possible because the original item was on, for example, an external USB disk which has been unplugged.
I just want to avoid flashing a window at the user if an image disk is involved.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden