• 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: Creating an empty XML file on my desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30



 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating an empty XML file on my desktop
      • From: email@hidden
References: 
 >Creating an empty XML file on my desktop (From: Eric Welch <email@hidden>)

  • Prev by Date: RE: Creating an empty XML file on my desktop
  • Next by Date: Re: Creating an empty XML file on my desktop
  • Previous by thread: RE: Creating an empty XML file on my desktop
  • Next by thread: Re: Creating an empty XML file on my desktop
  • Index(es):
    • Date
    • Thread