Compiling AppleScript in Cocoa?
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.