• 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: Luther Fuller <email@hidden>
  • Date: Mon, 17 Oct 2005 07:35:24 -0500

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Make New File in System Events
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Mounting and Dismounting local or server volumes on Tiger
  • Next by Date: Re: Open File in Illustrator CS
  • Previous by thread: Re: Make New File in System Events
  • Next by thread: Re: Make New File in System Events
  • Index(es):
    • Date
    • Thread