• 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: "Philip Lukidis" <email@hidden>
  • Date: Wed, 19 Jul 2006 13:14:06 -0400
  • Thread-topic: possible to pass direct object param from cocoa to applescript?

My error. This was a copy from an earlier script version where it was hard coded.  Subsequent to that I passed and used the parameters, but somehow I did not send that version.  The latest tested version uses all parameters.

So to summarize: getting a list descriptor returned to my cocoa app from an script which queries all tracks is simple enough.  Parsing the list descriptor's track objects for the track id, source id, and playlist id should be easy enough (these IDs are all longs).  Sending longs/strings from my cocoa app to my script is easy enough.  Fortunately this solves my problem.  Too bad there is no easy way to send an object as a parameter from cocoa without resorting to crafting raw Apple events. (at least I have not found it).

Philip Lukidis


> -----Original Message-----
> From: applescript-users-bounces+plukidis=email@hidden
> [mailto:applescript-users-bounces+plukidis=guillemot.com@lists
> .apple.com
> ]On Behalf Of Gary (Lists)
> Sent: Wednesday, July 19, 2006 12:27 PM
> To: AppleScript Users
> Subject: Re: possible to pass direct object param from cocoa to
> applescript?
>
>
> "Philip Lukidis" wrote:
>
> > on OnPlayTrack(pid, tid, sid)
> > tell application "iTunes"
> > tell library playlist id 51 of source id sid
> > set ct to (get track id 63)
> > play ct
> > end tell
> > end tell
> > end OnPlayTrack
> > OnPlayTrack(51, 63, 37)
>
>
> You do note here that you never use your 'pid' and 'tid'
> variables, right?
>
> --
> Gary
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
email@hidden

This email sent to email@hidden
 _______________________________________________
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

  • Prev by Date: Re: possible to pass direct object param from cocoa to applescript?
  • Next by Date: Need help with Maclink Plus Deluxe...
  • Previous by thread: Re: possible to pass direct object param from cocoa to applescript?
  • Next by thread: Need help with Maclink Plus Deluxe...
  • Index(es):
    • Date
    • Thread