RE: Works only once (renaming files)
RE: Works only once (renaming files)
- Subject: RE: Works only once (renaming files)
- From: email@hidden
- Date: Mon, 17 Jun 2002 23:50:49 EDT
Dear Kerry,
I ran into this problem when I first started renaming files in scripts.
The culprit? Having already renamed the files (file1.jpg, file2.jpg,
file3.jpg, etc), after adding some additional files (let's say ABC.jpg), the
attempt to rename a file (in this case ABC.jpg) into a name already consumed
by another (file1.jpg) caused it to not work. Renaming all the files into a
second name (temp1.jpg, temp2.jpg, etc) first, and then naming them back into
the desired naming convention cleared the problem right up. At least under AS
1.6... under 1.7, I never did beat the problem, choosing to downgrade back to
1.6 instead for compatibility reasons.
Best Wishes
=-= Marc Glasgow
_______________________________________________
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.