• 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
Compiling AppleScript in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling AppleScript in Cocoa?


  • Subject: Compiling AppleScript in Cocoa?
  • From: Keo Darksbane <email@hidden>
  • Date: Wed, 15 Oct 2003 15:18:45 -0700 (PDT)

So get this.. I'm trying to writen an applescript into
an NSString, _compile_ it, and then execute it, all in
Cocoa.

The code in question is:
NSDictionary *errs = [[NSDictionary alloc] init];
NSAppleScript *launcher = [[NSAppleScript alloc]
initWithSource: @"current date"];
[launcher compileAndReturnError:&errs];

However, when I try to run it, I get this nonsense:
(It errors on the compileAndReturnError line)

2003-10-15 14:58:20.394 Well Golly[412] argument
terminology dictionary not found for name=Name
2003-10-15 14:58:20.450 Well Golly[412] No readable
name in dictionary

The terminology file is used for providing applescript
support for cocoa, something this bit of code has
nothing to do with.

Can anyone help?
-Nathan

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Compiling AppleScript in Cocoa?
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: More on dictionaries
  • Next by Date: General weirdness with [self window]
  • Previous by thread: Re: OpenGL examples
  • Next by thread: Re: Compiling AppleScript in Cocoa?
  • Index(es):
    • Date
    • Thread