Syntaxignoring application responses end ignoring DescriptionYou can use this statement block to control string comparisons. The ignoring statement is used with application responses to disregard any responses from the apps that receive the script commands: ignoring application responses...end ignoring The following AppleScript constants are the parameters to the ignoring statement. They are all considered by default:
ExamplesThis code shows how to use ignoring...end ignoring. Believe it or not, the code: "j'u-n,k t?'ext" is equal to "junk text" returns true, because the enclosing ignoring block tells AppleScript to ignore punctuation and hyphens when making the string comparison: ignoring punctuation and hyphens but considering case return ("j'u-n,k t?'ext" is equal to "junk text") (*returns true because punctuation is ignored in the comparison *) end ignoring If you want to ignore more than one constant, just separate them with the and operator: ignoring punctuation and white space and hyphens and expansion. You can also use the but considering parameter followed by one of the specified constants (e.g., hyphen, white space) to ignore some elements but consider others: ignoring punctuation but considering white space |