• 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: Mount Point to Alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount Point to Alias


  • Subject: Re: Mount Point to Alias
  • From: Philip Aker <email@hidden>
  • Date: Wed, 12 Aug 2009 08:33:05 -0700

On 2009-08-12, at 07:38:05, Luther Fuller wrote:

I have a disk on my desktop and I have the mount point "/dev/ disk1" for that disk.
How do I convert "/dev/disk1" to an alias usable by Finder?

<x-man-page://8/diskutil> might be a good starting point.

I looked at the man page, but I found nothing useful there. Let me explain more ...


For example:
1. I have an HD partition named "Roger" mounted on my desktop;
2. I have a file "Cynthia.sparsebundle" which when opened mounts a disk named "Roger" on my desktop; and
3. I know that the mount point for the sparsebundle disk is "/dev/ disk1". (do shell script "hdiutil info")

Now, I need to AppleScript the Finder to write to the disk "Roger".
No, not that disk "Roger", the other one whose mount point = "/dev/ disk1".

Knowing the name of the sparsebundle disk does not help.
I need to convert the string "/dev/disk1" to an alias to the sparsebundle disk.

VOL=`diskutil info /dev/disk1 | grep 'Volume Name:' | tr -d ' ' | cut - d : -f2`
ioreg -l | grep image-path | grep $VOL


might be a good starting point…


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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: 
 >Mount Point to Alias (From: Luther Fuller <email@hidden>)
 >Re: Mount Point to Alias (From: Philip Aker <email@hidden>)
 >Re: Mount Point to Alias (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Mount Point to Alias
  • Next by Date: Re: Mount Point to Alias
  • Previous by thread: Re: Mount Point to Alias
  • Next by thread: Re: Mount Point to Alias
  • Index(es):
    • Date
    • Thread