• 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: UUID of a volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

On Mar 16, 2014, at 14:34, Lists <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

References: 
 >UUID of a volume (From: Lists <email@hidden>)
 >Re: UUID of a volume (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: UUID of a volume
  • Next by Date: Re: Canonical way to extract row number from a cell reference
  • Previous by thread: Re: UUID of a volume
  • Next by thread: Re: UUID of a volume
  • Index(es):
    • Date
    • Thread