• 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
Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?


  • Subject: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?
  • From: Mohsan Khan <email@hidden>
  • Date: Sun, 27 Apr 2008 20:27:18 +0200

Hi,

I'm trying to call an AppleScript from my Cocoa application, I've copied the code from http://developer.apple.com/technotes/tn2006/tn2084.html but my application will crash once called.

I did change the script to:
NSAppleScript* scriptObject = [[NSAppleScript alloc] initWithSource: @"beep"];


Calling this line will crash my app:
returnDescriptor = [scriptObject executeAndReturnError: &errorDict];

Did I miss something, because I have no idea what the console messages mean?


Console messages:
"Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/ Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/ Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/ Adobe Unit Types: no matching architecture in universal wrapper
MyApp: OpenScripting.framework - scripting addition /Library/ ScriptingAdditions/Adobe Unit Types.osax declares no loadable handlers.
2008-04-27 20:17:15.095 MyApp[7531:10b] Error loading /Library/ ScriptingAdditions/FITS.osax/Contents/MacOS/FITS: dlopen(/Library/ ScriptingAdditions/FITS.osax/Contents/MacOS/FITS, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/FITS.osax/Contents/MacOS/FITS: no matching architecture in universal wrapper
MyApp: OpenScripting.framework - scripting addition /Library/ ScriptingAdditions/FITS.osax declares no loadable handlers."
_______________________________________________


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: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Calculating file size
  • Next by Date: Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?
  • Previous by thread: Re: New idea?
  • Next by thread: Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?
  • Index(es):
    • Date
    • Thread