• 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: possible to pass direct object param from cocoa to applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible to pass direct object param from cocoa to applescript?


  • Subject: Re: possible to pass direct object param from cocoa to applescript?
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 19 Jul 2006 08:35:08 -0700

At 9:49 AM -0400 7/19/06, Philip Lukidis wrote:
>I need to be able to pass a direct object parameter from my cocoa application to a script which would be talking to iTunes.  Is this possible?  I have been able to pass simple parameters from cocoa to AS (like numbers and strings), but so far not objects.  For example, I need to be able to play any track whose object I have already queried.
>
>Are raw Apple Events my only recourse?

Sort of.  OSADoEvent specifically allows you to send an AppleEvent of your construction to a script.  So yes, you'll need to construct a valid AE which your script can handle.

Jon
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >possible to pass direct object param from cocoa to applescript? (From: "Philip Lukidis" <email@hidden>)

  • Prev by Date: Re: getting the image file of a mounted disk image
  • Next by Date: RE: possible to pass direct object param from cocoa to applescript?
  • Previous by thread: possible to pass direct object param from cocoa to applescript?
  • Next by thread: RE: possible to pass direct object param from cocoa to applescript?
  • Index(es):
    • Date
    • Thread