Example 2: Simulate AutoWatch
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 are defined for manual checks in the bookmark properties.
The Script can be aborted with the Abort button in the main toolbar. Defined bookmark actions are executed, for example Send email, because they are not 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