• 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: Problems with ScriptingBridge and iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with ScriptingBridge and iTunes


  • Subject: Re: Problems with ScriptingBridge and iTunes
  • From: has <email@hidden>
  • Date: Mon, 3 Mar 2008 00:44:31 +0000

Adam P Jenkins wrote:

I'm not sure what the logic is behind the "get" method, but there it is.


It's completely logical if you appreciate that Apple event IPC is RPC +queries. To tell a scriptable application to perform an operation, you send it a command (Apple event). If the command operates on application objects, you identify those objects using simple first- class relational queries ("object specifiers" in Apple event jargon, or what AppleScripters misleadingly call "references") which you supply as arguments (parameters) to the command. As a rough analogy, think of using XPath queries over XML-RPC.

It's a simple, really rather elegant, and surprisingly powerful and flexible conceptual model, whose simplicity, elegance, power and flexibility is, in execution, horribly distorted and obscured by AppleScript's - and, to an even greater extent, Scripting Bridge's - crazy mad love affair with pseudo-OO syntax and poorly documented 'magic' behaviours, until the number of folks who have a completely accurate and comprehensive understanding of how this stuff really works can probably be counted on the fingers of one hand.


There's a brief summary of the basic principles behind Apple event IPC included in the appscript documentation. For your convenience, the Ruby version is currently online at:


	http://rb-appscript.rubyforge.org/doc/appscript-manual/02_aboutappscripting.html

For a more detailed discussion see the two PDF papers by William Cook (one of the original AppleScript designers) on the appscript links page:

	http://appscript.sourceforge.net/links.html

Matt Neuburg's "AppleScript: The Definitive Guide" (2nd ed.) is also well worth a read.

HTH

has
--
http://appscript.sourceforge.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Handling mouse click event on a NSButton
  • Next by Date: Re: Bypassing inter-cell navigation for NSButtonCell in NSOutlineView
  • Previous by thread: Re: Problems with ScriptingBridge and iTunes
  • Next by thread: Re: Problems with ScriptingBridge and iTunes
  • Index(es):
    • Date
    • Thread