Variable renaming and managing a folder
Variable renaming and managing a folder
- Subject: Variable renaming and managing a folder
- From: Bernard Azancot <email@hidden>
- Date: Sat, 22 May 2004 13:18:30 +0200
Hello !
My problem is simple but irritating newbie problem.
I backup files from an "A" drive to a "B" drive in a folder "X".
This folder is renamed according to the backup variable date reference.
Actually the script is OK, but it stops when it encounters a folder
with the same name as the day backup folder ("X" renamed) in the "B"
drive (backup already performed the same day).
I want to keep only one backup folder a day. So, when a folder with the
same name already exists in drive "B", I would like to replace/delete
it.
---
set MyFolder to folder "X"
set name of MyFolder to todaysDate as text
---
"X" --> "mm-dd-yyyy BU"
No problem of course to do it with the "X" folder *before* it has been
renamed, but I cannot figure how to do it with the new folder variable
name.
Deleting MyFolder deletes the new "X" folder, not the previous backup
folder.
Any help woud be highly appreciated.
Guys, your contributions here do have an enormous value for newbies
like me.
I read you every day and learn a lot.
Many thanks.
Bernard.
_______________________________________________
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.