Hello Luther, don't be so nervous ;-)
Why would the id returned by System Events match what you assume ?
There is no reason for that.
System Events dictionary claims :
id (text, r/o) : the unique ID of the disk item (no more, no less)
In your code, aDisk is a reference to disk item and what a surprise, you get a text (aka string) result.
As far as I know, it's the unique case where id is said to be a text, all others are said to be integers.
No need to be a sooth sayer to understand that it must be a reason for this difference.
Here I got "Macintosh HD,-100,2"
-100 is what is returned by the Finder.
If you are interested by the shared value, I'm sure that you are able to extract it from the value returned by System Events.
I will no try to offend you by posting the required piece of code ;-)
SE return three infos in a single string :
Macintosh HD - which is redundant but is not wrong
-100 - which is identical to the Finder's id
2 - which means something but who knows what.
If there is a true problem here, it's certainly not the difference between id from Finder's point of view and id from System Events' one,
it's just what is the meaning of the third component.
Yvan KOENIG (VALLAURIS, France) lundi 17 mars 2014 17:36:33