home *** CD-ROM | disk | FTP | other *** search
- /* Example: Edit script */
-
- OPTIONS RESULTS
-
- PARSE ARG 'ID ' ID ' ERROR ' Err ' URL "' URL '" START ' DoStart ' PORT ' port .
-
- ADDRESS(port)
-
- /* The part up to now should be in every edit script */
-
- /* You should check what/if you need to do anything with this URL */
- /* Note that most commands like START, SET etc. can't do anything */
- /* with locked URLs. So, it's preferable to do everything possible */
- /* (f. ex. set a flag that authorization needs to be added) before */
- /* URL is unlocked, and then *quickly* do everything that can't be */
- /* done while URL is locked */
-
- IF LEFT(URL, 20) = 'http://www.test.com/' THEN DoIt = 1
- ELSE DoIt = 0
-
- /* This has to be in every edit script or the URL will remain locked! */
- UNLOCKURL ID
-
- /* Now, after the URL is unlocked you can do anything to it */
- /* Preferably very quickly! */
-
- IF DoIt THEN SETAUTHORIZATION 'ID='||ID||' USERNAME username PASSWORD password'
-
- /* This will be set if Autostart option is used or if the user selected */
- /* OK & start in the edit window. Should be in every edit script. */
- IF DoStart THEN START ID
-