Re: UUID of a volume
Re: UUID of a volume
- Subject: Re: UUID of a volume
- From: Lists <email@hidden>
- Date: Sun, 16 Mar 2014 18:02:38 -0700
On Mar 16, 2014, at 2:53 PM, Christopher Stone < email@hidden> wrote: Is it possible to do this with pure AppleScript?
______________________________________________________________________
Hey J,
Nyet. But considerable simplification is possible:
------------------------------------------------------------------------------------------- tell application "Finder" to set diskList to name of disks whose name is not in {"home", "net"} set diskName to choose from list diskList default items (item 1 of diskList) if diskName ≠ false then set volUUID to do shell script "diskutil info " & diskName & " | awk '/UUID/ { print $NF }'" end if -------------------------------------------------------------------------------------------
Much simpler. Now to read up on what it's doing.
Thanks very much Chris |
_______________________________________________
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