Mailing Lists: Apple Mailing Lists

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

Read values from file



Hi everyone,

I need to know how I can read from the file below(contents are below) when my program launches and set some the text fields to the values below. So text field one would be set to "string one", text field two would be set to "string two", etc. etc. I know how to set the values, but I do not know how to read from the file below and just extract the values I need.

Does anyone have a simple example of how I can do this? Please post or email me if you do.

Thanks,

-Rhon
<file contents>
{
timer = {
value = "1";
R = 1.0;
G = 0.0;
B = 0.501960784314;

};
beep = {
setting = 0;
};
ws1 = {
wstring = "string one.";
R = 0.0;
G = 1.0;
B = 0.0;
};
ws2 = {
wstring = "string two:";
R = 0.0;
G = 0.501960784314;
B = 1.0;
};
ws3 = {
wstring = "string three.";
R = 1.0;
G = 0.8;
B = 0.4;
};
}
<end of contents>
_______________________________________________
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.



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.