This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
Frequently_Asked_Questions [2017/09/19 09:52] peternlewis [What is the difference between text token fields and calculation fields?] |
Frequently_Asked_Questions [2017/09/19 09:54] peternlewis [How should I name my variables?] |
||
---|---|---|---|
Line 289: | Line 289: | ||
Which brings us to the point of this article: *naming best practices*. | Which brings us to the point of this article: *naming best practices*. | ||
+ | |||
+ | In version 8, variables that start with "Local " will be local to the macro in question, and that start with "Instance " will be local to the macro instance (ie, that macro and all the macros that it executes). Consider availing yourself of these local variables if appropriate. | ||
Keyboard Maestro variables can have whitespace characters in their name. This is good for human readability. It also makes for better user experience in User Input dialogs. Whitespace characters are converted to underscores in scripts. From a Shell or AppleScript'ers point of view these don't look “natural”. | Keyboard Maestro variables can have whitespace characters in their name. This is good for human readability. It also makes for better user experience in User Input dialogs. Whitespace characters are converted to underscores in scripts. From a Shell or AppleScript'ers point of view these don't look “natural”. |