• 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
Enabling Standard AppleScript Support with Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Calculating the height of text in NSTextField
  • Next by Date: Re: Modifying HTML Content of a WebFrame
  • Previous by thread: Override Autosave Write-to-file Fuctions
  • Next by thread: Re: Enabling Standard AppleScript Support with Cocoa App
  • Index(es):
    • Date
    • Thread