Jump to content

Please Help: Toast


This topic is 8092 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi.

I'm trying to schedule Toast Lite 5.0.2L to backup a folder onto a CD every 6 hours.

So far, I've written:

code:


set theItem to "HD:Folder"

tell application "Toast Lite 5.0.2L"

add to current disc

item theItem

write current disc

end tell

But it doesn't seem to work.

Can anyone please help me?

Thank you!

Kind regards

Krishan. smile.gif

Link to comment
Share on other sites

Hi again.

I've written more now...

code:


set thedate to current date

set ztime to (time of thedate)

set datestring to day of thedate & " " & month of thedate & " " & year of thedate

set DBbackupname to "DB" & " " & datestring & ";" & " " & ztime

tell application "Finder"

make new folder at folder "HD:Desktop Folder:TempBackup:" with properties {name:DBbackupname}

copy items in folder "HD:Databases:" to folder ("HD:Desktop Folder:TempBackup:" & DBbackupname)

end tell

set DB to ("HD:Desktop Folder:TempBackup:" & DBbackupname) as alias

tell application "Toast Lite 5.0.2L"

activate

close tray

with timeout of 30000 seconds

add to current disc items DB

write current disc as session without ejecting

end timeout

quit without saving

close tray

end tell

Now I just need to get this to run every 6 hours... smile.gif krishan.

Link to comment
Share on other sites

This topic is 8092 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.