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 5:35 AM, "Luther Fuller" <email@hidden> wrote:

> I tried it and if worked. Which brings up another old complaint.
> Nowhere in the System Events dictionary does it say anything about
> adding the words
> "end of files of". Either the dictionary is badly written or System
> Events is broken or both.

Not exactly. 'make' in the Standard Suite says, as in every application:

    at - location reference : the location at which to insert the element

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


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