Re: iTunes3 AppleEvents?
Re: iTunes3 AppleEvents?
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
}
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.