Re: Make New File in System Events
Re: Make New File in System Events
- Subject: Re: Make New File in System Events
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 18 Oct 2005 08:10:19 -0700
- Thread-topic: Make New File in System Events
On 10/18/05 5:53 AM, "Luther Fuller" <email@hidden> wrote:
> 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.
No, that is not what 'location reference' means. Take a look at 'make' in
any other application, for example, Address Book or iCal: it says exactly
the same thing 'at - location reference', and those apps don't deal with
paths, aliases or folders. It's natural to understand it that way for the
Finder and System Events, but that's not actually what it means. It's
referring to a location in a collection of elements.
--
Paul Berkowitz
_______________________________________________
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