Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCoreSuite.sdef entry for "open file" is incorrect



OK, finally found the problem with my application's use of "open file". Its appears that the problem is due to an incorrect "open file" entry in NSCoreSuite.sdef.

I filed a bug rdar://4725273

In short, the default NSApplication handler (handleOpenScriptCommand:) expects the direct parameter to be a list of files, but the sdef has the implicit "list="no".

If you change the open command to be:

<command name="open" code="aevtodoc" description="Open an object.">
<direct-parameter description="The file(s) to be opened." type="file" list="yes"/>
</command>


then everything starts working [the change is the addition of list="yes"].


David _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.