• 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: iTunes3 AppleEvents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes3 AppleEvents?


  • Subject: Re: iTunes3 AppleEvents?
  • From: Varun Mehta <email@hidden>
  • Date: Tue, 23 Jul 2002 23:33:03 -0400

on 7/23/02 10:37 PM, Nicholas Riley at email@hidden wrote:

> On Tue, Jul 23, 2002 at 10:24:40PM -0400, Varun Mehta wrote:
>> on 7/23/02 9:42 PM, Nicholas Riley at email@hidden wrote:
>>
>>> On Tue, Jul 23, 2002 at 09:32:27PM -0400, Varun Mehta wrote:
>>>> Is there any way to find out the AppleEvent codes for iTunes 3? I suppose
>>>> I
>>>> could use AppleScript to send Events to iTunes, but that would involve a
>>>> serious performance hit. Being an OS X application I cannot seem to find
>>>> any aeut resources, can anyone help?
>>>
>>> There is an 'aete' resource in iTunes.rsrc (which is a data-fork
>>> resource file inside the package). Script Debugger is also useful, as
>>> you can set it to view the dictionary with raw event codes as well as
>>> in AppleScript (or JavaScript) syntax.
>>
>> There is the part I don't understand. How do I open the .rsrc so that it
>> opens as a resource fork instead of as a data fork?
>
> Resorcerer 2.4 will open it directly; copy the data fork to the
> resource fork to get it to open in ResEdit or earlier versions of
> Resorcerer. I wrote a zsh function that does it.
>
> swapforks () {
> cp $1/data $1.data
> cat $1/rsrc >| $1/data
> cat $1.data >| $1/rsrc
> rm $1.data
> }
Okay, I've got the AppleEvent Codes that I want, but in what form do I send
that to AECreateAppleEvent()? I know this must be getting annoying, but you
obviously all know your Cocoa stuff. Thanks

Varun Mehta
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: iTunes3 AppleEvents? (From: Nicholas Riley <email@hidden>)

  • Prev by Date: Re: How to find icon file path?
  • Next by Date: Re: How to get stock quotes?
  • Previous by thread: Re: iTunes3 AppleEvents?
  • Next by thread: ask about cocoa UI
  • Index(es):
    • Date
    • Thread