• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OSX Coding Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: OSX Coding Help
      • From: Jeff Grossman <email@hidden>
References: 
 >OSX Coding Help (From: Jeff Grossman <email@hidden>)

  • Prev by Date: Strange problem with text item delimiters
  • Next by Date: Re: applescript-users digest, Vol 3 #1785 - 10 msgs
  • Previous by thread: Re: OSX Coding Help
  • Next by thread: Re: OSX Coding Help
  • Index(es):
    • Date
    • Thread