Re: NSAppleScript question
Re: NSAppleScript question
- Subject: Re: NSAppleScript question
- From: "Vijay Malhan" <email@hidden>
- Date: Wed, 4 Jun 2008 17:18:33 +0530
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@hidden>
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 (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
>
_______________________________________________
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