• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting A Folder On An Image Disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Getting A Folder On An Image Disk (From: Luther Fuller <email@hidden>)
 >Re: Getting A Folder On An Image Disk (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Getting A Folder On An Image Disk
  • Next by Date: Re: Getting A Folder On An Image Disk
  • Previous by thread: Re: Getting A Folder On An Image Disk
  • Next by thread: Re: Getting A Folder On An Image Disk
  • Index(es):
    • Date
    • Thread