• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 17 Oct 2005 13:56:14 -0700
  • Thread-topic: Make New File in System Events

On 10/17/05 1:33 PM, "Luther Fuller" <email@hidden> wrote:

> Paul Berkowitz replied ...
>> The 'location' has to be specified in this case, either 'at the end of
>> [elements of a container]' , or 'at the beginning of [elements of a
>> container]' to really specify the location. Apparently that's "how it is" at
>> the deeper object model level. But developers experienced with implementing
>> AppleScript know that they can make it work for 'at [a container]'.
>> (Presumably that's coerced to the 'end of elements' at that container under
>> the hood.) i believe that Cocoa apps originally couldn't even do this
>> coercion until Panther (according to Chris Nebel, who should know), but it's
>> been possible for the coercion to be made since that time. Unfortunately,
>> loads of Apple developers did not correct this. Address Book has done so in
>> Tiger, iCal has not, System Events has not. It's a horrible nuisance, but I
>> don't think exactly a bug. I sure wish they'd all fix it, though. Like
>> needing the explicit 'get' for almost everything...
>
> It may be "how it is", but if it doesn't work as specified by the dictionary,
> then it's a bug! And it remains a bug until the dictionary is rewritten.

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?

--
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

References: 
 >Re: Make New File in System Events (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Problem with dot_underscore files
  • Next by Date: Re: Problem with dot_underscore files
  • Previous by thread: Re: Make New File in System Events
  • Next by thread: Re: Make New File in System Events
  • Index(es):
    • Date
    • Thread