• 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
Odd crash-loading AppleScripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd crash-loading AppleScripts


  • Subject: Odd crash-loading AppleScripts
  • From: Reza Farhad <email@hidden>
  • Date: Thu, 5 Mar 2009 10:25:59 +0000

Has

Thanks for your suggestion but it did not make any difference.
To make sure that there was nothing else in my code that was creating the issue I made a little app to reproduce the problem. This app Loads a simple "Hello World" script and displays it in a window. Again if I have Guard Malloc on, it would crash the app, but otherwise it seems to work. Here is a link to the test project app, so others can have a look and see if they can get to the bottom of this.


http://www.Qu-s.eu/Dev/AppleScriptLoader.zip

Thanks
Reza

On 4 Mar 2009, at 19:27, has wrote:

Reza Farhad wrote:

Paul

I switched on Guard Malloc from the Run Menu in Xcode

It appears that I am getting the crash for a call that is trying to
load an AppleScript.

	NSDictionary 	*errors = [ NSDictionary dictionary ];
	NSAppleScript 	*script = [[ NSAppleScript alloc ]
initWithContentsOfURL:url error:&errors ];


One point, which may or may not be related: as with **NSError arguments, you do not need to allocate an NSDictionary instance yourself. If there is an error to report, initWithContentsOfURL:error: will create it for you.

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net


_______________________________________________

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


  • Follow-Ups:
    • Re: Odd crash-loading AppleScripts
      • From: Matt Gough <email@hidden>
References: 
 >Re: Odd crash (From: has <email@hidden>)

  • Prev by Date: Re: How to search for mop3 files, retrieve those file and play these file into apps
  • Next by Date: Re: How to search for mop3 files, retrieve those file and play these file into apps
  • Previous by thread: Re: Odd crash
  • Next by thread: Re: Odd crash-loading AppleScripts
  • Index(es):
    • Date
    • Thread