Re: OSX Coding Help
Re: OSX Coding Help
- Subject: Re: OSX Coding Help
- From: Andrew Oliver <email@hidden>
- Date: Fri, 27 Jun 2003 10:13:41 -0700
On 6/27/03 7:55 AM, "Jeff Grossman" <email@hidden> wrote:
>
I have the following script which will delete some files, if they exist, and
>
then export some address lists from LetterRip Pro. I want the script to run
>
from cron as an application. If I remove the beginning part which deletes
>
the existing files the script will run fine via cron. If I add back in the
>
part about deleting files, the script will not run via cron. Is it not
>
possible to do what I want with Applescript and cron?
[snip[]
There's actually no need to delete the files at all.
When you 'open for access' the files to write out the new data, just 'set
EOF' of each file to 0 before you start writing data. That will effectively
clear the existing file before any new data is written and solves your
problem.
Andrew
:)
_______________________________________________
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.