• 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
Warning 'could not find object file' on NSAppleScript -executeAndReturnError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning 'could not find object file' on NSAppleScript -executeAndReturnError


  • Subject: Warning 'could not find object file' on NSAppleScript -executeAndReturnError
  • From: Steve Cronin <email@hidden>
  • Date: Fri, 06 Feb 2009 09:12:27 -0600

Folks;

I use AppleScript to accomplish some inter-application tasks.

Over time I have a developed several utility routines in Cocoa, one of which is to return the results of an arbitrary script execution. as an NSString:

- (NSString *) getStringResutlFromAppleScript:(NSString *)theScript {
NSDictionary *errorDict = nil;
NSAppleScript *appleScriptObject = [[NSAppleScript alloc] initWithSource:theScript];
NSAppleEventDescriptor *eventDescriptor = [appleScriptObject executeAndReturnError: &errorDict]; \\this compiles on-the-fly if necessary
[appleScriptObject release];
if (([eventDescriptor descriptorType]) && (errorDict==nil)) {
return [self stringFromAppleEventDescriptor:eventDescriptor];
} else {
NSLog(@"ERROR: ",theScript);
...


This has been working for quite some time.

But now I have recently noticed that every execution of the 'executeAndReturnError:' is causing a entry in the console:
warning: Could not find object file "/Developer/usr/lib/gcc/i686-apple- darwin9/4.0.1/libgcc.a(_eprintf.o)" - no debug information available for "/var/tmp/gcc/gcc-5465~16/src/gcc/libgcc2.c".


I've stepped thru numerous examples and it is ALWAYS this line. The scripts are all valid scripts.
The code executes properly but it just sticks in my craw...
What have a not got configured correctly?


Thanks!
Steve
_______________________________________________

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


  • Prev by Date: NSTableView and DataSource problem
  • Next by Date: Re: NSTableView and DataSource problem
  • Previous by thread: RE: NSTableView and DataSource problem
  • Next by thread: NSTableView Popup Column issue
  • Index(es):
    • Date
    • Thread