• 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
Variable renaming and managing a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Variable renaming and managing a folder
      • From: Graff <email@hidden>
  • Prev by Date: Re: Unsafe handlers revisited - Now Fixed
  • Next by Date: RE: Variable renaming and managing a folder
  • Previous by thread: Re: Panther Help Viewer Problem Fixed
  • Next by thread: Re: Variable renaming and managing a folder
  • Index(es):
    • Date
    • Thread