Re: Login Applescript won't write to file
Re: Login Applescript won't write to file
- Subject: Re: Login Applescript won't write to file
- From: Sun Real <email@hidden>
- Date: Fri, 29 Jun 2001 12:42:02 +1000
Timothy K. Wilkinson's message of 29/6/01 1:58 AM contained:
>
I've got a very aggravating AppleScript problem I'd love some input on...
>
...The script works perfectly when I run it from
>
Script Editor....
Hmm. What you posted won't compile as it is (after de-mangling for line
wraps).
>
...Any
>
ideas why it would write to that file when run from Script Editor but not
>
when it runs alone?
Don't know what happened there, but you code appears to be incomplete:
It finishes with an "end tell" but there is no 'tell' to end. I got it
to compile with a tell Finder at the top, but I didn't see any Finder
commands in a quick look over it. Also compiles after removing the 'end
tell'.
The file is not opened for access anywhere in what you posted and opening
for access with write permission is required in this case.
If you'd like to post either a cut down functional example (preferable),
or the whole thing, I'll try to have a look at it for you. Others will
hopefully do the same.
Cheers,
Richard Morton
-- Great Lies of the Software Business: "No known bugs"