Re: iTunes: Why can't I get properties.
Re: iTunes: Why can't I get properties.
- Subject: Re: iTunes: Why can't I get properties.
- From: Christopher Nebel <email@hidden>
- Date: Tue, 1 Apr 2008 11:10:57 -0700
On Mar 28, 2008, at 3:29 AM, Skeeve wrote:
Axel Luttgens wrote:
You are right: "file track" inherits from "track", which in turn
inherits from "item".
But none of those classes exhibits a "properties" property.
This should be the explanation of the failure...
Hmmm...
So you're telling me that I only can get all of the properties
listed under "PROPERTIES" if, and only if, there is also a property
listed that gives access to all of them? Like there is for "window"
in Finder's library?
Correct.
So is there another way to access all properties?
Not in AppleScript, no. "Properties" is implemented as a special
property that returns all the other properties as one big record, so
it's up to the application to support that. Cocoa apps do this
automatically, but iTunes isn't Cocoa, so I'd suggest filing a bug. A
sufficiently clever client could support "properties" automatically by
inspecting the dictionary and sending multiple "get" commands, but (a)
AppleScript can't do that, and (b) you'd lose any performance
advantage over simply getting all the properties you need individually.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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