On 14/gen/07, at 02:02, Arnaud Nicolet wrote:
Le 14 janv. 07 à 01:38 Matin, Massimo Valle a écrit:
On 13/gen/07, at 22:56, Arnaud Nicolet wrote:
I wonder: what is a scriptable application that ScriptEditor
cannot use?
I found this some time ago, when REALbasic 5.5.5 had a bug in the
Info.plist file. The bug was a mispelled NSAppleScriptable key and
ScriptEditor refusing to open the RB dictionary. Other than that,
I seem to remember that executing a script was functional.
Thanks, but my question was not clear:
Suppose you put all required files in your bundle to make your
application scriptable, but you don't put the NSAppleScriptable
key. That does not seems logical.
So, what is the purpose of this key? Script Editor should rely more
on the fact that the files are presents rather than this key, isn't
it?
The NSAppleScriptEnabled key was introduced in Mac OS X 10.2
In a tech note from Apple, (http://developer.apple.com/technotes/
tn2002/tn2053.html) related to "software development related changes"
in Mac OS X 10.2 you can read:
"IMPORTANT:
The Info.plist key, NSAppleScriptEnabled = true, will soon be
required before Launch Services will consider an application
scriptable. Developers of scriptable applications should start using
this Info.plist key now.
Launch Services lets you find out a number of things about an
application, including whether or not it's scriptable. However, if
you're a bundle application, you need to put NSAppleScriptEnabled =
true in your Info.plist for Launch Services to consider you
scriptable. AppleScript in Mac OS X 10.2 takes additional steps to
determine if an application is scriptable, but in the future, it will
rely on Launch Services exclusively. At that point, if your
application is scriptable but lacks the NSAppleScriptEnabled key, it
will not show up in lists of scriptable applications, such as the
list displayed for the Script Editor's "open dictionary" command."
Furthermore, the technote which describes the plst resource (http://
developer.apple.com/technotes/tn/tn2013.html), says:
"LaunchServices uses the NSAppleScriptEnabled key in the same way it
would the presence of an 'aete' resource to determine whether a
Classic or single-file CFM app with plst is scriptable."
I think the above could clarify the point.
Massimo Valle
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>