On Aug 15, 2005, at 3:02 PM, Bill Cheeseman wrote:
on 2005-08-15 4:22 PM, Mark Alldritt at email@hidden
wrote:
Cocoa Scripting's implementation of the open command does not
return a
reference to the newly created object. Returning a reference is
something
that I've always done in my scriptable apps. Does anyone know how
to hack
Cocoa scripting to do this? I've added a result to my sdef, and
now I'm
left trying to figure out how to "fix" the open command.
The specification for the 'open' command in the AppleScript
Language Guide
says that it does not return a result. I suppose that isn't a
reason not to
return a result in your own app, but it makes the lawyer in me
uncomfortable.
The ASLG has been superseded in some places by the SIG < http://
developer.apple.com/technotes/tn2002/tn2106.html#standard-commands>:
open
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.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden