Yess you can pass arguments through AppleScript. See Scripting Commands for this. http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_script_cmds/chapter_8_section_1.html
You can visually see the commands/properties available for iTunes in it's Scripting dictionary which can be accessed by ScriptEditor.app Open ScriptEditor->File> Open Dicitionary-> In the list of app's select iTunes. for eg: you can explore "file track" command for what you are trying to do. - Vijay On Wed, Jun 4, 2008 at 4:39 PM, Matthew Delves <[EMAIL PROTECTED]> wrote: > 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. > > Thanks, > Matthew Delves > _______________________________________________ > > 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/vijay.malhan%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ 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]