Re: Make New File in System Events
Re: Make New File in System Events
- Subject: Re: Make New File in System Events
- From: Luther Fuller <email@hidden>
- Date: Tue, 18 Oct 2005 07:53:44 -0500
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:
This email sent to email@hidden