condition:Script
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| condition:Script [2016/06/22 03:24] – peternlewis | condition:Script [2021/10/18 08:52] (current) – peternlewis | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * a Swift script. | * a Swift script. | ||
| * a JavaScript for Automation (JXA) script. | * a JavaScript for Automation (JXA) script. | ||
| + | * a JavaScript in Front Browser script (v9.0+). | ||
| + | |||
| + | For text AppleScript or JavaScript, press `Enter` to format the script (v10.0+). | ||
| You can test the result of executing the script: | You can test the result of executing the script: | ||
| Line 13: | Line 16: | ||
| * returns an error (the script returned some sort of error code). | * returns an error (the script returned some sort of error code). | ||
| * returns a specific status code (unlike almost all other numeric fields, this cannot be a calculation). | * returns a specific status code (unlike almost all other numeric fields, this cannot be a calculation). | ||
| - | * returns text that is exactly a specified string. | + | * returns not text. (v8+) |
| - | * returns text that is not exactly a specified string. | + | * returns some text. (v8+) |
| + | * returns text that is exactly | ||
| + | * returns text that is not exactly | ||
| + | * returns text that contains (case insensitively) a specified string. | ||
| + | * returns text that does not contain (case insensitively) a specified string. | ||
| + | * returns text that starts with (case insensitively) a specified string. (v8+) | ||
| + | * returns text that ends with (case insensitively) | ||
| * returns text that is alphabetically before a specified string. (v7.2+) | * returns text that is alphabetically before a specified string. (v7.2+) | ||
| * returns text that is alphabetically after a specified string. (v7.2+) | * returns text that is alphabetically after a specified string. (v7.2+) | ||
| - | * returns text that is contains a specified string. | ||
| - | * returns text that is does not contain a specified string. | ||
| * returns text that is matches a specified [[:Regular Expressions|regular expression]]. | * returns text that is matches a specified [[:Regular Expressions|regular expression]]. | ||
| * returns text that is does not matches a specified [[:Regular Expressions|regular expression]]. | * returns text that is does not matches a specified [[:Regular Expressions|regular expression]]. | ||
| + | * returns text that is numerically less than a specified calculation. (v8+) | ||
| + | * returns text that is numerically less than or equal to a specified calculation. (v8+) | ||
| + | * returns text that is numerically equal to a specified calculation. (v8+) | ||
| + | * returns text that is numerically greater than or equal to a specified calculation. (v8+) | ||
| + | * returns text that is numerically greater than a specified calculation. (v8+) | ||
| + | * returns text that is numerically not equal to a specified calculation. (v8+) | ||
| The script will receive the Keyboard Maestro variables in its environment as usual for any executed script in Keyboard Maestro. | The script will receive the Keyboard Maestro variables in its environment as usual for any executed script in Keyboard Maestro. | ||
| ===== See Also ===== | ===== See Also ===== | ||
| - | |||
| - | ---- | ||
| === Actions === | === Actions === | ||
| * [[action:If Then Else|If Then Else]] | * [[action:If Then Else|If Then Else]] | ||
| - | * [[action:Pause|Pause Until Conditions Met]] | + | * [[action:Pause_Until|Pause Until Conditions Met]] |
| * [[action: | * [[action: | ||
| * [[: | * [[: | ||
| Line 38: | Line 49: | ||
| * [[: | * [[: | ||
| - | |||
| - | ---- | ||
| - | |||
condition/Script.1466565862.txt.gz · Last modified: by peternlewis
