On Wed, 4 Jun 2008 21:09:53 +1000, Matthew Delves <[EMAIL PROTECTED]> said: >Greetings and salutations, >Is there a way to pass arguments into an AppleScript file using >NSAppleScript and other cocoa/obj-c classes? > >The reason that I ask is I am wanting to find out the path to a song >in iTunes. I have a script which does this for hard coded values, >though am uncertain as to how to accomplish it (or if it is indeed >possible) using NSAppleScript.
I think what you're asking to do is what I illustrate on pp. 478-9 of my AppleScript book (though I can't quite be sure from the way you describe it). Or you could just google on "executeAppleEvent" to find out more. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf> AppleScript: the Definitive Guide - Second Edition! <http://www.amazon.com/gp/product/0596102119> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]