Krishan Posted March 25, 2002 Share Posted March 25, 2002 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. Link to comment Share on other sites More sharing options...
Krishan Posted March 25, 2002 Author Share Posted March 25, 2002 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... krishan. Link to comment Share on other sites More sharing options...
jfmcel Posted March 25, 2002 Share Posted March 25, 2002 Try iDo Script Scheduler. It can be found in the extras folder in any recent Mac OS install CD. Link to comment Share on other sites More sharing options...
Krishan Posted March 25, 2002 Author Share Posted March 25, 2002 Thanks. I'll check it out! But my script runs great now. just added code: on idle ...my above script... return 360 * minutes end idle Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now