Re: move theFile to thePath replacing no
Re: move theFile to thePath replacing no
- Subject: Re: move theFile to thePath replacing no
- From: Johnny AppleScript <email@hidden>
- Date: Fri, 25 Jul 2003 11:20:53 -0600
On 03/07/25 10:42 AM, "Nigel Smith" <email@hidden> wrote:
>
The tricky bit is renaming the file. Prefixing or suffixing with a number is
>
easiest, but the first mucks up alphabetical listings and the second messes
>
up file endings. Best, but most difficult, way is to insert something before
>
the last dot in the name, if the name has a dot, otherwise at the end of the
>
name.
Yes, that's what I ended up doing once I received the error and realized the
list was too asleep to hear any answer before it had to be working.
I also got it done in far fewer lines than your example, but it was also for
a specific, predictable file kind and naming convention.
If Apple is listening, it sure would be mighty nifty (and clearly possible)
for Finder Dictionary to do the same as URLAS when using the 'replacing no'
string (which, except for clarity, as the default, is otherwise useless --
yes, I know that 'no' is simply the antithesis of 'yes' and apparently
exists by default; let's just make it more useful).
Obviously, Finder itself is full capable of doing it, as witnessed by
placing two items of the same name in the Trash -- and honestly, I prefer
Finder's '-n' or '-n.ext' to URLAS' 'n' or 'n.ext', as it gives a better
visual flag of duplicates.
Thanks for the input; sorry to confuse you, Gary. :-)
_______________________________________________
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.