Here’s a bug I hit yesterday (and verified in the general case today):
- Open a suite
- Find the scripts folder for your suite in the Finder
- Drag one of the scripts from the Finder to the suite window
–> Alert shows asking if you want to replace the script - OK the alert
The script is gone from your suite and deleted from your hard drive. Crap, that’s some work lost! (And I didn’t have a backup, yipe!)
Recommended solutions (with the last being the most important!):
- Check whether the script is actually the one already in the suite and put up a message that is pertinent; don’t do any replace
- When doing a replace, don’t delete the script being replaced – rename it, move it, etc.
- If you have to delete a file, move it to the trash instead, so that the user can recover in case of an error