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



Matthew Smith ssuggsted ...
tell application "System Events"
    make new file at end of files of desktopalias with properties
{name:"ASD"}
end tell

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.


There is more to my question, however. I need to make a new plist file. So I tried ...

tell application "System Events"
make new property list file at end of files of locRef with properties {name:"test.plist"}


The file 'test.plist' is created at the correct location, but it is apparently NOT a plist file.
When I try to open it, Property List Editor says "The document "test.plist" could not be opened."


So the new question now is ... How do I create a new property list file?
_______________________________________________
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


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.