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 20:51:10 -0700
On 2009-09-15, at 18:41:40, Eric Welch wrote:
Anyone going to write an introductory book on the subject any time
soon?
If you mean AppleScriptObjC, for right now it's best to pick up the
chatter on the AppleScript Studio mailing list (since Snow Leopard
release). Currently, Apple's documentation for it is minimal but more
is promised. If you are reasonably familiar with Cocoa and AppleScript
already, there's not much to learn (except that there seem to be
behavior anomalies that aren't explained or bugs).
Sure hope if someone does it doesn't take as long as Applescript
1-2-3 took to get to print. I ordered my copy in October 2003 and
got it this year! :-D
Better late than never?
On Sep 15, 2009, at 8:42 AM, Philip Aker wrote:
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