Enabling Standard AppleScript Support with Cocoa App
Enabling Standard AppleScript Support with Cocoa App
- Subject: Enabling Standard AppleScript Support with Cocoa App
- From: Philip Dow <email@hidden>
- Date: Sun, 29 Jan 2006 12:40:27 +0100
I am attempting to enable for my app the standard AppleScript support
for cocoa applications in preparation for more advanced scripting.
According to the docs, I should just be able to add a key and value
to my Info.plist file and automatically get that functionality:
<key>NSAppleScriptEnabled</key>
<string>YES</string>
When I do this and clean build my app, I am, however, unable to get
Script Editor to see my application's scripting library. Dropping the
app on script editor or adding the app via the library window
produces no effect. Sometimes, the app is added to the library list,
but no window pops open with the standard and text suites visible. No
messages are logged to the console.
If I create a new project and add that key/value combination to the
Info.plist file, without doing anything else to the application, ie
no controller class, nothing, other than a textview added to the main
nib file, then viewing the library in Script Editor works just fine.
Any thoughts on the cause of this problem? If I've changed something
in my application during it's development that would prevent the
standard applescript support from working, I haven't a clue what it is.
-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden