In a part of my AppleScript Studio code I have:
error number 2000 -- staying away from Apple's negative numbers
Later, I have:
try
on error errMsg number errNum
if errNum is 2000 then doSomething()
end try
My doSomething() is never called; rather, AppleScript itself puts up a generic window noting the errNum and that’s it.
Help!!