Re: Writing To A File
Re: Writing To A File
- Subject: Re: Writing To A File
- From: Walter Ian Kaye <email@hidden>
- Date: Mon, 29 Sep 2003 14:25:17 -0700
At 12:52p -0700 09/29/2003, Randy Beaudreault didst inscribe upon an
electronic papyrus:
Hi All,
I'm having problems with the next portion of my script. I'm unable
to write to my file:
set Date_File to open for access file
":Users:maccult:Library:Preferences:once-a-day" with write permission
write (day of (current date)) to Date_File
close access Date_File
I'm wondering if my syntax is correct or is this a bug with the
Standard Additions?
It's probably your file reference. Starting with ":Users" is not
likely to do what you want. Here's something more reliable:
file ((path to preferences from user domain as string) & "once-a-day")
OS X - UNIX for the rest of us
...especially funny when you think of Apple as the largest Unix vendor. :)
-boo
_______________________________________________
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.