Re: Need to automate iTunes->File->Library->Import Playlist...
Re: Need to automate iTunes->File->Library->Import Playlist...
- Subject: Re: Need to automate iTunes->File->Library->Import Playlist...
- From: Philip Aker <email@hidden>
- Date: Tue, 15 Sep 2009 08:42:28 -0700
On 2009-09-15, at 05:29:55, Michael A. Crawford wrote:
ScriptingBridge: Isn't this just another avenue to Apple Events, but
for Objective-C programmers?
Yes however only minimal Objective-C is required to use it. As I
mentioned, the advantage is that you can mix in calls to other
frameworks in C or C++ directly in your code. This can spare you
having to incorporate custom OSAXen when things that AppleScript can't
handle are needed. Yet another choice, if you can require 10.6 or
later, is to use AppleScriptObjC.
In short, you can solve your problem by a choice of means. The minimum
framework layer for AppleEvents is CoreServices (which is daemon
capable). The minimum framework layer for Accessibility is
ApplicationServices (not daemon capable).
2. AppleScript is based on Apple Events. Therefore dropping down
to the AE level won't help if conclusion number one is correct.
Yes, but there's also the option to "drop" to Accessibility calls.
GUI scripting (look at the System Events dictionary Processes
Suite) is based on the Accessibility interfaces. Another
alternative is to use ScriptingBridge <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ScriptingBridgeConcepts/
> because then it's possible to use C/C++/Objective-C for accessing
a scriptable application in those languages and mix in
Accessibility calls.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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