Re: Changing the name of a file in the temporary items folder
Re: Changing the name of a file in the temporary items folder
- Subject: Re: Changing the name of a file in the temporary items folder
- From: Michelle Steiner <email@hidden>
- Date: Sat, 8 Dec 2007 00:32:26 -0700
On Dec 8, 2007, at 12:17 AM, Skeeve wrote:
Yes, this does have the risk of wiping out a file with the same
name as the source file in the temporary folder; it also runs the
risk of encountering a file with the new name in the temporary
items folder, causing the script to error. Both risks are so
miniscule as to not having any concerns about.
Guess all the fun your colleagues will have whe the first call comes
in telling them that there are these strange error messages.
Someone on this list suggested I'm paranoid. The question is not
whether I'm paranoid, the question is: Am I paranoid *enough*?
When you are a hobby programmer and this script is just for you and
maybe a handful of friends - let it be.
But if you program for money and this script will become production
code, I think you better start getting paranoid. What I learned from
almost 27 years of programming is, that you better don't assume
anything about the content of temporary folders. And never ever
delete anything in there, except if you created it.
So why are you trying to duplicate and rename a file that is in use by
an application?
--
I love my country; I'm just ashamed (and afraid) of its current
administration.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden