• 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: Droplet for disks with duplicate names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Droplet for disks with duplicate names


  • Subject: Re: Droplet for disks with duplicate names
  • From: Laine Lee <email@hidden>
  • Date: Wed, 21 Sep 2005 23:29:09 -0500
  • Thread-topic: Droplet for disks with duplicate names

On 9/21/05 9:07 PM, "Dave Lyons" <email@hidden> wrote:

> If the script below confuses the two disks as written, I'd like to
> get some more details of your configuration so I can reproduce the
> problem.  Or, if there is a larger script that fails, I'd be
> interested to experiment with that as well.  It might or might not be
> possible to find some syntax that avoids converting through a pathname.

It's the way you created and mounted the disk images that allowed them to be
distinguished, I believe. The only situation in which it's likely they would
be created precisely that way is for testing this complaint. Here's a method
that should reveal the problem.

Steps to Reproduce:

1. Use Script Editor to save the following Applescript as an application
with the name "DiskID.app".

on open selection
 tell application "Finder"
  repeat with i in selection
   display dialog (index of (a reference to disk i)) as string
  end repeat
 end tell
end open

2. Use Disk Utility to create a  disk image named "Apple Disk Volume" and
save it to the desktop. Hold down the option key and drag the image file
(not its mounted drive icon) to another location on the hard drive such as
the home folder to make a copy.  Drag the original disk image's volume icon
to the trash to unmount  Apple Disk Volume.

3. Double-click the Apple Disk Volume.dmg icon on the desktop to once again
mount its volume. Double-click the second Apple Disk Volume.dmg icon. There
should now be two volume icons named "Apple Disk Volume" visible on the
desktop.

4. Drag one, then the other "Apple Disk Volume" volume icon onto the DiskID
application's icon.
Note that the same disk index number is displayed in an Applescript dialog
box no matter which icon is dragged.

--
Laine


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Droplet for disks with duplicate names
      • From: Dave Lyons <email@hidden>
References: 
 >Re: Droplet for disks with duplicate names (From: Dave Lyons <email@hidden>)

  • Prev by Date: Re: Droplet for disks with duplicate names
  • Next by Date: Re: File Order Processing Question
  • Previous by thread: Re: Droplet for disks with duplicate names
  • Next by thread: Re: Droplet for disks with duplicate names
  • Index(es):
    • Date
    • Thread