Example 2: Simulate AutoWatch

Top  Previous  Next

The following example simulates the AutoWatch feature for all Hotsites from two different bookmark files. The delay between checks is one minute.

 

The script uses the time settings that have been defined for manual checks in the bookmark properties.

 

The script can be aborted with the "Abort" button in the main toolbar. Defined bookmark actions will be executed (for example "Send e-mail") because they have not been disabled in the script.

 

// Check all Hotsites from bookmark file tools.wsw
OpenBookmarkFile "f:\wswatch\tools.wsw"
CheckBookmarks /hotsites
 
// Check all Hotsites from bookmark file magazines.wsw
OpenBookmarkFile "{bookmarkdir}magazines.wsw"
CheckBookmarks /hotsites
 
// Wait 60 seconds, then restart the script
WaitDelay 60
RestartScript




Translate document: