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

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.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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>)
 >ID of a Disk (From: Luther Fuller <email@hidden>)
 >Re: ID of a Disk (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: ID of a Disk
  • Next by Date: Re: ID of a Disk
  • Previous by thread: Re: ID of a Disk
  • Next by thread: Re: ID of a Disk
  • Index(es):
    • Date
    • Thread