Mailing Lists: Apple Mailing Lists

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

Re: Make New File in System Events



Paul Berkowitz commented ...
I don't understand what you mean. Luther. How is the dictionary wrong? It
says you need to specify a location reference : "the location at which to
insert the element". It so happens that the location here requires a very
precise coordinate, namely the actual position in the list of elements. It
doesn't say that you can supply simply a container object, does it?

First, let's look at the Finder dictionary ...
make : Make a new element
make
new type class -- the class of the new element
at location reference -- the location at which to insert the element
[to reference] -- when creating an alias file, the original item to create an alias to
or when creating a file viewer window, the target of the window
[with properties record] -- the initial values for the properties of the element
Result : reference -- to the new object(s)


'location reference' is simply a path or alias to a folder. Everybody has used this often
and knows exactly what to expect.


Now, look at the System Events dictionary ...
make : Make a new object.
make
new type class -- The class of the new object.
[at location reference] -- The location at which to insert the object.
[with data anything] -- The initial data for the object.
[with properties record] -- The initial values for properties of the object.
Result : reference


Except for using 'object' instead of 'element', its description of 'location reference'
is equivalent to the former. Why would I expect it to behave any differently?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/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.