The opposite of 'on error'

Hi, I’m very new to Applescript so please excuse me if this is an obvious question but,

I understand i can use the try command to try to do something and then use on error to do something else if the original task fails. But what if I want something to happen on success? For example, if I ask a cript to mount a network share with a certain username and password, on error can tell me if it fails, but if it completes successfully i would like write to a log or send me an email to say that its worked.

Thanks in advance for any help,
Piers

Hi,

try
-- success
on error
-- no success
end try

all lines between try and on error will be executed and on error thru end try will be skipped in case of no error
when an error occures the script jumps immediately to the first line after on error and continues