• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSAppleScript question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSAppleScript question (From: Matthew Delves <email@hidden>)

  • Prev by Date: NSAppleScript question
  • Next by Date: Re: What's the NSMailDelivery replacement for Leopard and Beyond?
  • Previous by thread: NSAppleScript question
  • Next by thread: Re: NSAppleScript question
  • Index(es):
    • Date
    • Thread