Re: Creating an empty XML file on my desktop
Re: Creating an empty XML file on my desktop
- Subject: Re: Creating an empty XML file on my desktop
- From: Philip Aker <email@hidden>
- Date: Thu, 24 Apr 2008 19:35:36 -0700
On 08-04-24, at 19:13, Eric Welch wrote:
… But I was wondering how to tell Applescript to create an empty text file on my desktop named "images.xml"
set xml to "<?xml version=\"1.0\"/><root/>" set xml to "" set fpath to ((path to desktop folder as text) & "images.xml")
try set f to open for access fpath with write permission set eof of f to 0 write xml to f close access f on error errs return errs end try
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden