I have a script which automatically generates and autonumbers memo template files for me. It reads a master memo template file, searches for the memo index number which appears in two different locations, increments the numbers, then saves the master template. It also saves a copy of the now updated memo template to a new file which contains the new memo number as part of the filename.
It is very handy for cranking out a new memo, with file name and memo sequence number automatically numbered, and ready to fill in.
The problem is that, under conditions I have not been able to identify (I haven't checked the phase of the moon yet, nor the level of oil in my car), the script will fail. I will get a (script-generated) error message that the memo number could not be found. It will continue to fail on subsequent executions. However, I have noticed that if I have the memo template master already open, the script will execute successfully. And it will continue to execute successfully after I close the master template file--until... what? maybe the number of jelly beans on the cute administrative assistant's desk reaches an even number again? Or something like that.
Does anyone else have a problem with intermittent failure of scripts? (Probably it's related to the find operation.)
It is very handy for cranking out a new memo, with file name and memo sequence number automatically numbered, and ready to fill in.
The problem is that, under conditions I have not been able to identify (I haven't checked the phase of the moon yet, nor the level of oil in my car), the script will fail. I will get a (script-generated) error message that the memo number could not be found. It will continue to fail on subsequent executions. However, I have noticed that if I have the memo template master already open, the script will execute successfully. And it will continue to execute successfully after I close the master template file--until... what? maybe the number of jelly beans on the cute administrative assistant's desk reaches an even number again? Or something like that.
Does anyone else have a problem with intermittent failure of scripts? (Probably it's related to the find operation.)