Modifying a .plist file
Modifying a .plist file
- Subject: Modifying a .plist file
- From: "David R. Pierce" <email@hidden>
- Date: Sun, 23 Feb 2003 16:56:47 -0600
The situation is that I want my Cube to wake up early in the morning so that an
Applescript (which I have already written, and which works well) will go out to
the internet and get my e-mail, news and weather so that all of this will be
waiting for me when I get up. This is easily done by a program called iBeeZz
which is a preference pane. Unfortunately, I also want the computer to wake up
late in the afternoon to do the same things before I get home from work. At
this time my only recourse is to manually go into System Preferences, open
iBeeZz, and re-set the time to wake and I need to do this twice a day, every
day. I thought that I should be able to Applescript this, but neither iBeeZz
nor System Preferences seems to have an Applescript dictionary. Nor do they
seem to be amenable to the new GUI manipulation Applescript addition.
By chance I found that iBeeZz stores its data (including the wake up time) in a
text file with a .plist extension. Therefore, I should be able to open the file
in word or text processor, change the hour (which must be in 24 hour format) and
then save the file. Unfortunately, although I had several programs that I
thought might work, all of them had problems. Either they wouldn't open the
file or they didn't have Applescript support. I downloaded the demo of BBEdit,
and it worked just fine, but I don't think I want to spend $180 for what is
really a single use. Is it possible to just use plain vanilla Applescript to
open the file for writing and skip the word processor totally. And will it be
saved back with the Unix newline instead of the Mac carriage return?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.