Re: Make New File in System Events
Re: Make New File in System Events
- Subject: Re: Make New File in System Events
- From: Luther Fuller <email@hidden>
- Date: Mon, 17 Oct 2005 15:33:30 -0500
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.
FWIW, I couldn't solve my problem by using System Event's
'make new property list file ...', so I solved it by putting a default
plist file in my application bundle's Contents/Resources/Default folder,
then just copying this file where I needed it. System Events DOES read
and write plist files correctly.
_______________________________________________
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