On Jun 18, 2008, at 20:18 PM, Bill Janssen wrote:

Thanks, Daniel.

It looks impossible from my perspective and knowledge, maybe someone
smarter has it figured out.

Apparently someone has, from the scrap of Applescript I pointed to
before (OK, here it is again:
https://bugzilla.mozilla.org/show_bug.cgi?id=427448).You cannot

I'll repeat: the angle brackets mean Applescript cannot find that class in the dictionary of the application you are addressing. that means you are asking the application for something it doesn't know about at least as far as Applescript can tell it directly. It's like trying to get the value of an undefined variable--it cannot be done because it does not exists.
But you can enter raw apple events which is what you want to do.
See here for and explanation of the brackets and how to enter them:
http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_raw_data.html

How you'll find out which apple events to call without a dictionary is a task you'll have to figure out--they aren't defined in a dictionary like they should be. THey might be compiled into the resources in the bundle, but I don't have the time nor inclination to go down that road.
Maybe you might ask the Adium developers how they found them.
And as for why the Firefox developers would support raw events but not write a dictionary is not only a mystery, but also very, very bad form.
But it's a question for them not me as to why they chose that path.

Daniel
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to