[Pythonmac-SIG] py-appscript: Rating a Song with Applescript

2010-01-18 Thread William Reardon
I'm attempting to programmatically rate a song in iTunes. I hacked together the following snippet in Applescript, but after reading the docs, I can't figure out how to convert the "every file..." mechanic to the py-appscript equivalent. Any suggestions? tell application "iTunes" set ts to (eve

Re: [Pythonmac-SIG] Loading bridgesupport files - pyObjC

2010-01-18 Thread Aahz
On Tue, Jan 19, 2010, Ben Jack wrote: > > Well! As per usual, after hours of frustration as soon as I send off an > email I discover the answer for myself. Put a teddybear on your desk and explain the problem to it. ;-) -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.

Re: [Pythonmac-SIG] Loading bridgesupport files - pyObjC

2010-01-18 Thread Ben Jack
Well! As per usual, after hours of frustration as soon as I send off an email I discover the answer for myself. For those who are curious there is an objc method objc.parseBridgeSupport which converts xml data to the necessary python objects. so the code looks like this: f = open('/Library/Framew

[Pythonmac-SIG] Loading bridgesupport files - pyObjC

2010-01-18 Thread Ben Jack
Hi there, I am currently delving into pyObjC, but have been running into some difficulty's with using the bridgesupport files for the framework I am using. I have the basics working using objc selectors for example if I have a delegate function buttonChanged_isPressed_ (int1, int2) : buttonChanged_