how can i save some string to xml file?

Jan 09, 2009 21:10

hi, everybody, does anybody can help me?
i need to save 4 lines to xml file, i wrote the next code:

set thepath to "" & (path to desktop)

set theFile to thepath & "control.xml"

set TheText to "

" & return

open for access file theFile with write permission

set eof file theFile to 0

write TheText to file theFile starting at eof as Unicode text

Read more... )

Leave a comment

Comments 3

xv January 9 2009, 18:30:49 UTC
There is some terminology in the System Events dictionary that deals with XML. There is also a Scripting Addition you can install for more commands. I'm assuming there is a reason you have to write part of this in AppleScript, but if you can it may be simpler to do your xml part with do shell script.

Reply

carlogulliani January 9 2009, 18:47:08 UTC
ok, thanks for yr reply and for the link, yes, i thought about shell command, but i haven't how to do it with do shell?

please, can you show me example || tutorial?

Reply

carlogulliani January 9 2009, 19:57:58 UTC

Leave a comment

Up