• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make New File in System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Make New File in System Events
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Getting a handler to use a value from a different handler?
  • Next by Date: Re: Mounting and Dismounting local or server volumes on Tiger
  • Previous by thread: Re: Make New File in System Events
  • Next by thread: Re: Make New File in System Events
  • Index(es):
    • Date
    • Thread