• 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: Basic instinct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic instinct


  • Subject: Re: Basic instinct
  • From: Andy Wylie <email@hidden>
  • Date: Mon, 30 Dec 2002 10:43:34 +1300

on Sun, 29 Dec 2002 19:21:07 +0100 Bernard Azancot wrote:

>Hello !
>Basic question from a newbie:
>
>I have a simple full backup script with no problem, but I would like to
>enhance the code.
>
>It goes like this:
>
>- if it is Sunday
>select folder "Sunday.bkp"
>empty
>copy he_folder _ to _ backup to "Sunday.bkp"
>etc.
>
>- else if it is Monday
>select folder "Monday.bkp"
>empty
>copy the_folder _ to _ backup to "Monday.bkp"
>etc.
>
>- else if it is Tuesday...
>-
>-
>-
>- else if it is Saturday...
>
>It is always the same action to perform, but the destination folder
>varies with the week day.
>There shouls be something more handsome... ;-)
>
You can get the day and build the path so...

"disk:backup folder:" & (current date)'s weekday & ".bkp:"

and use 'duplicate with replacing'
_____________________________ Andy
_______________________________________________
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: How to close-quit an osascript making a dialog box?
  • Next by Date: Re: BUG: Store script Perversity - Bug found
  • Previous by thread: Basic instinct
  • Next by thread: Re: Basic instinct
  • Index(es):
    • Date
    • Thread