[Python-bugs-list] [ python-Bugs-753925 ] OSA handling of toplevel properties is weird

SourceForge.net noreply@sourceforge.net
Fri, 13 Jun 2003 05:32:10 -0700


Bugs item #753925, was opened at 2003-06-13 14:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=753925&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: OSA handling of toplevel properties is weird

Initial Comment:
Handling toplevel properties (i.e. properties of the 
application) in Python is strange. In applescript you can say
"get player state" to iTunes and it will tell you whether it is 
playing or not.

In Python you have to do 
xx.get(iTunes.iTunes_Suite._Prop_player_state()), which I 
actually found by accident:-)

Why you have to use the funny name I know (and can fix), 
but the strange call of the property object is a mystery to 
me. "get name of window 1" translates to 
"xx.get(iTunes.window(1).name)", but even 
"xx.get(iTunes.application(0).name)" doesn't.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=753925&group_id=5470