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



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Make New File in System Events (From: Luther Fuller <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.