• 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: Adding files to iTune library in Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding files to iTune library in Cocoa app


  • Subject: Re: Adding files to iTune library in Cocoa app
  • From: "Tom Harrington" <email@hidden>
  • Date: Tue, 26 Jun 2007 10:49:29 -0600

On 6/26/07, has <email@hidden> wrote:

        // Compile (or load) AppleScript
        NSAppleScript *scpt = [[NSAppleScript alloc] initWithSource:
                        @"on run {arg1, arg2}\n return arg1 & arg2\n end"];

        // Send event to AppleScript
        NSDictionary *error;
        NSAppleEventDescriptor *resDesc = [scpt executeAppleEvent:evtDesc
error:&error];

NSAppleScript's docs indicate that -executeAppleEvent:error: can't be used to send Apple events to other applications. In the present context-- sending events to iTunes-- it doesn't look as though the above approach would work. Is your framework somehow overriding this behavior?

--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Adding files to iTune library in Cocoa app (From: has <email@hidden>)

  • Prev by Date: Re: Core data accessors for structs
  • Next by Date: Re: Baffling NSImage crash
  • Previous by thread: Re: Adding files to iTune library in Cocoa app
  • Next by thread: Re: Adding files to iTune library in Cocoa app
  • Index(es):
    • Date
    • Thread