Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing file



I know I can use a do shell script and echo each string and redirect it to my file, but there should definitely be an easier way. Anyone know?

Thanks,

-Rhon
On Sunday, August 24, 2003, at 02:50 PM, Rhon Fitzwater wrote:

I have some text that I need to save to a file, but I am not sure of
the best way to go about writing the file. Below is the data that I
need to save to one file.
===================================
{
timer = {
value = timerValue;
color = timerColor
};
beep = {
setting = beepSetting;
};
ws1 = {
wstring = ws1;
color = ws1Color;
};
ws2 = {
wstring = ws2;
color = ws2Color;
};
ws3 = {
wstring = ws3;
color = ws3Color;
};
}
=========================
Note that, timerValue, timerColor, beepSetting, ws1, ws1Color, etc. are
all variables that are defined in my script. What would be the easiest
way to write the data above out to a file (i.e: ~/Documents/output. I
need this file to keep its formatting.

Thanks in advance for the help.

-Rhon
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >writing file (From: Rhon Fitzwater <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.