• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Renaming files in list in batch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Renaming files in list in batch


  • Subject: Renaming files in list in batch
  • From: Helen Muller <email@hidden>
  • Date: Thu, 22 Aug 2002 16:59:32 +0200

Hello,

Can someone help me. please? I am writing a script which moves just the
files (in a list in batch) I want to from one folder to another. That part
goes right. But now I want to change the filename if that filename already
exists in the other folder. The user sends the file to Folder A, applescript
moves the file from Folder A to Folder B. For example;

In folder A I have
test1.ps (is deleted after moving it to folder B)

In folder B I have
test1.ps

If the user sends another file named test1.ps I want Applescript to rename
it automatically to test1_1.ps. Because of my workflow I create the
following situation:

In folder A I have

In folder B I have
test1.ps
test1_1.ps

That part I still can handle. But if the user sends another file named
test1.ps I get an message; filename already excists. Overwrite file
(Yes/No). I don't want the message I want the file to rename automatically
if the system notices that a file with the same name allready excists. For
example;
test1_1.ps, test1_2.ps, test1_3.ps, et cetera.

Best Regards,
Helen Muller
PeereboomKoggeschip
The Netherlands
_______________________________________________
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.

  • Follow-Ups:
    • Re: Renaming files in list in batch
      • From: Nathan Day <email@hidden>
  • Prev by Date: Returning variables from java apps to an applescript
  • Next by Date: Re: Fetch
  • Previous by thread: Returning variables from java apps to an applescript
  • Next by thread: Re: Renaming files in list in batch
  • Index(es):
    • Date
    • Thread