Re: Basic instinct
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.