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

RE: Variable renaming and managing a folder


  • Subject: RE: Variable renaming and managing a folder
  • From: "Bull, Rex J (CCC)" <email@hidden>
  • Date: Sat, 22 May 2004 07:11:12 -0500

You may want to just check to see if the folder exists and if it does deal
with it however you want before making and renaming the ne folder.



> Rex Bull
> PrePress Support
> Carlson Craft Business Solutions
> Phone: 507-386-2508
>
>
>
> ----------
> From: Bernard Azancot
> Sent: Saturday, May 22, 2004 6:18 AM
> To: AppleScript
> Subject: Variable renaming and managing a folder
>
> 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.
_______________________________________________
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.


  • Prev by Date: Variable renaming and managing a folder
  • Next by Date: Re: GUI scripting in QuarkXPress
  • Previous by thread: Re: Variable renaming and managing a folder
  • Next by thread: Re: Variable renaming and managing a folder
  • Index(es):
    • Date
    • Thread