Re: R23's Osaxen It's not me
Re: R23's Osaxen It's not me
- Subject: Re: R23's Osaxen It's not me
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 26 Jan 2001 16:27:51 -0800
On 1/26/01 3:22 PM, "email@hidden" <email@hidden> wrote:
>
Well, there is one thing truly funky about scripting the Finder with some
>
of the very commands you're using.
>
>
If you try to rename a file when a file with that name already exists in
>
the same location, the Finder will display a user dialog telling you to
>
choose another name for your file or that file name already exists. And
>
you can't trap that error and ignoring application responses doesn't help.
>
And if Finder is in the background things like Okey Dokey or Player are
>
useless.
Thanks, Ed. I know about that one. I test to see if alias "PathName" errors
or not (since, once again, testing for exists in the Finder didn't always
work for me) and, if it _doesn't_ error (i.e. the file already exists), then
I have routine for cutting down the name to 27 characters, adding a "...",
testing whether a ".1" file exists (the same way) and adding a decimal point
and index number when I get to file name + index that doesn't yet exist.
All that works fine. But thanks, anyway - it's certainly something that
needs guarding against.
--
Paul Berkowitz