Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Applescript issues  (Read 6034 times)

0 Members and 1 Guest are viewing this topic.

yoyobilly5

  • Guest
Applescript issues
« on: October 24, 2008, 08:55:36 AM »
Hello, in my applescript I am trying to print a variable to a file.  Right now I am using do shell script "echo..." .  In the variable I have a XML file but when i do the echo and copy it to a file it drops all of the double quotes in the XML.  Does anyone know how this could be solved?

The line I am using is:

do shell script "echo -n \"" & file_data & "\">/Applications/MUOwner.nsi" with administrator privileges

In 10.5 I use a "tell "TextEdit"" to copy the information to a file, but in 10.4 I am unable to make it save where I want.

Thanks,
Drew