Wednesday, January 5, 2011

As one AppleScript error elimination

AppleScript is English style designed to easily learn with a syntax that is easy to read programming language: "set to 10" instead of "" one 10. = ""

However, can read this syntax errors lead to facilitate, crawl in AppleScript, programming, because only a few English-language commands will work. AppleScript is derived from a combination of language and basic commands added in the application libraries features; the path to your program by these libraries plot is the key to understand the syntax error. Level of difficulty: Medium difficult

Instructions
  1. 1

    Write the exact error when you run your AppleScript and testing of the row in which it occurred.

(It will be specified in the script editor or AppleScript Editor window). If errors or other correct are obvious error on this line.
  • 2

    The most common error, AppleScript is abusive a typed variable.

  • If your error "can not make type [object type] [object]", review your programming to ensure that the variable contains what you expect. Add a line "Return [Variable Name]" immediately before the line with error to explicitly specify its contents. You can correct this error with the constraint type: explicitly set the variable to a specific type with the command set VariableName variable name [type]', if the type "String", "number", or give other variable.
  • 3

    If the error is dire block AppleScript, open the application test dictionary to the syntax of this comm

  • Ande. Select "Windows" > "Library" to the list of dictionaries of the application open, and then aUF application you use. Find the command you use to check the syntax. Alternatively, if they are sent for this command to an application to plan, make sure to explain it properly in a block.
  • 4

    Manual for search, see the AppleScript language syntax for internal AppleScript commands suitable.

  • A correctly formatted command must use syntax highlighting to display the commands and keywords. If your order the words as the variables are selected, it is a good indication that you have misspelled your command.

    No comments:

    Post a Comment