Errors in valid code.
Issue #5
resolved
The following pretty standard code produces three errors.
<direct parameter declaration> expected, got '-' (at line 4) tell expected, got 'try' (at line 7) of expected, got 'tell' (at line 9)
tell application "Finder"
try
set dialogResult to display dialog "INTRO_TEXT"
on error number -128
set userCanceled to true
error number -128
end try
end tell
This compiles and runs fine in the applescript editor.
Comments (2)
-
repo owner -
repo owner - changed status to resolved
- Log in to comment
Didn't take into consideration that there is also a "simplified version of the try statement that checks for just a single error number". Added it now, thanks.