Re: ID of a Disk
Re: ID of a Disk
- Subject: Re: ID of a Disk
- From: Shane Stanley <email@hidden>
- Date: Tue, 18 Mar 2014 09:32:53 +1100
On 18 Mar 2014, at 4:15 am, Luther Fuller <email@hidden> wrote:
I think 'id' should always return an integer or text convertible to an integer.
There's a fairly strong precedent for that not being the case:
tell application id "com.apple.finder"
No integers there.
FWIW, this is what the Scripting Interface Guidelines say:
A value that uniquely identifies the object. IDs are never localized and are typically not under the user's control and therefore are read-only. They should at least be unique within a container – in most applications, they are unique within the entire application – and must remain valid for at least the lifetime of the application process or the object, whichever ends first. The type of value may be anything: common choices are an integer, a UUID, or a bundle identifier. The type of value for any particular class should always be the same.
All that notwithstanding, I agree that System Events appears to have made an odd choice.
|
_______________________________________________
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