Re: Strange sdef behaviour was AppleScript and plug-ins
Re: Strange sdef behaviour was AppleScript and plug-ins
- Subject: Re: Strange sdef behaviour was AppleScript and plug-ins
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 07 Jul 2005 04:37:50 -0400
on 2005-07-07 3:56 AM, Stephen McIntosh at email@hidden wrote:
> I had a Xcode 1.x project that complied a Cocoa document based
> application with a simple dictionary defined using sdef and complied
> using the sdp tool as a run script in Xcode.
>
> Convert this project into Xcode 2.1 the doco told me that I no longer
> need to use sdp tool.
> Problem 1. Script Editor no longer displays the dictionary I have
> defined in the sdef file....
Assuming that yours is a Cocoa application:
Extensive new documentation about the use of sdef files in Tiger was
released on the developer documentation site in early June, and a new
Skeleton.sdef example file was released a few days ago.
You don't need the sdp script build phase if your application is targeted at
Tiger only. If it is targeted at Panther or earlier, as well, you still need
to generate *.scriptSuite and *.scriptTerminology files using sdp (and
possibly 'aete' resources, to force your terminology dictionary to display
more accurately in some cases).
To ensure that the sdef file is used to generate a terminology dictionary in
Tiger, include the new OSAScriptingDefinition key with a value equal to the
name of the sdef file (including the .sdef extension) in your Info.plist
file. You also still need to set the NSAppleScriptEnabled key.
If you set up your project per above, your app should present the dictionary
using the sdef file alone when running under Tiger, and using the older
scripting definition files (and any 'aete' resource) alone when running
under Panther and older. If it still doesn't work, then it is likely that
there is an error in your sdef file.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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