ID of a Disk
ID of a Disk
- Subject: ID of a Disk
- From: Luther Fuller <email@hidden>
- Date: Mon, 17 Mar 2014 09:39:57 -0500
This question is prompted by yesterday's question "UUID of a volume". I wanted to take a look at an old script that presented a list of disks in 'choose from list' dialog. I found a problem illustrated by the following script ...
on run tell application "Finder" set aDisk to some disk whose startup is true set diskName to name of aDisk set diskID to (id of aDisk) end tell display dialog "disk name = " & diskName & return & "disk ID = " & diskID -- tell application "System Events" set aDisk to some disk whose startup is true set diskName to name of aDisk set diskID to (id of aDisk) end tell display dialog "disk name = " & diskName & return & "disk ID = " & diskID end run
Run this and notice the difference between the Finder's dialog and System Event's dialog. System Events displays the 'diskID' in an odd format. Does anyone see what's happening here? Is this, perhaps, a bug ?
|
_______________________________________________
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