• 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: AppleScript - occasional crashes on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript - occasional crashes on Leopard


  • Subject: Re: AppleScript - occasional crashes on Leopard
  • From: Michael Watson <email@hidden>
  • Date: Tue, 22 Apr 2008 15:01:37 -0400

For reference, you're not supposed to pass a pointer to a valid NSDictionary object in -executeAndReturnError:, you're supposed to pass a pointer to an NSDictionary pointer variable. On return, if there were errors encountered, errorDict will be a valid NSDictionary object.

--
m-s

On 22 Apr, 2008, at 13:47, Steve Cronin wrote:
NSString *theScript =@"some valid dynamic script text"
NSDictionary *errorDict = [NSDictionary dictionary];
NSAppleScript *appleScriptObject = [[NSAppleScript alloc] initWithSource:theScript];
NSAppleEventDescriptor *eventDescriptor = [appleScriptObject executeAndReturnError: &errorDict];

_______________________________________________

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: 
 >AppleScript - occasional crashes on Leopard (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: [Ann] DMG Canvas
  • Next by Date: Re: AppleScript - occasional crashes on Leopard
  • Previous by thread: Re: AppleScript - occasional crashes on Leopard
  • Next by thread: Re: AppleScript - occasional crashes on Leopard
  • Index(es):
    • Date
    • Thread