Errors in valid code.

Issue #5 resolved
Ryan Jarvis created an issue

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)

  1. Andrey repo owner

    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.

  2. Log in to comment