Mailing Lists: Apple Mailing Lists

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

How should the "open" command work?



TN2106 says the "open" command should open a file, or a list of files:


open file | list of files -- Returns a specifier to the created application object.

Opens the specified files, and returns the new application objects for them - probably documents. The standard version is designed for opening document files, but applications may apply open to other objects and add additional parameters.



Now, this seems a bit confusing - that the object would be either one item, or a list, when it could easily be a list with one item in it. Clearly this confusion has percolated into Cocoa code that handles this event.


I'm curious as to opinions on how this event really should be defined.


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.