app doesn't open files after activate
Adam R. Maxwell
amaxwell at mac.com
Tue Mar 27 12:56:34 PDT 2007
On Tuesday, March 27, 2007, at 11:12AM, "Christiaan Hofman" <cmhofman at gmail.com> wrote:
>An update: I found out that this has to do with the fact that the app is
>scriptable. When the app receives the first apple event (which was activate)
>the sdef is loaded. After that, files opened through apple events are opened
>through -handleOpenScriptCommand:. The bug is now that single files are not
>put in an array, while the app interprets this as an array. This leads to an
>exception.
>
>I have reproduced this problem in a very simple scriptable document based
>app (only thing I changed to the template project is adding the keys in
>Info.plist, changing the file extensions, and adding the standard
>Skeleton.sdef).So now my question is: what breaks -handleOpenScriptCommand:
>? It did work for me in the past, something in 10.4.9?
Looks like the same problem here <http://lists.apple.com/archives/Applescript-implementors/2006/Sep/msg00013.html> and here <http://www.cocoabuilder.com/archive/message/cocoa/2006/12/3/175387>. Apparently the Skeleton.sdef on the web has been fixed (probably the revision on 2007-03-05), but NSCoreSuite.sdef in /Developer/Examples/Scripting Definitions/ is still wrong.
-- adam
More information about the MacOSX-dev
mailing list