• 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: Nicholas Riley <email@hidden>
  • Date: Tue, 23 Jul 2002 21:37:33 -0500
  • Mail-followup-to: Varun Mehta <email@hidden>, email@hidden

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.

  • Follow-Ups:
    • Re: iTunes3 AppleEvents?
      • From: Varun Mehta <email@hidden>
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 find icon file path?
  • Previous by thread: Re: iTunes3 AppleEvents?
  • Next by thread: Re: iTunes3 AppleEvents?
  • Index(es):
    • Date
    • Thread