User Tools

Site Tools


Tokens

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
Tokens [2019/09/20 14:32]
JMichaelTX
Tokens [2019/09/20 16:52]
JMichaelTX
Line 3: Line 3:
 ===== Definition ===== ===== Definition =====
  
-**Tokens in Keyboard Maestro represent placeholders for information that will replace it in the text.** For example, the [[token:​SafariTitle|%SafariTitle% token]] ​returns ​the title of the current Safari tab.  So the value of the Token will be determined at execution time.  All tokens return a text value, even if the source data was some other data type.+**Tokens in Keyboard Maestro represent placeholders, that you enter during design time, for information that will be replaced ​in the text at run time.** For example, ​you could enter the [[token:​SafariTitle|%SafariTitle% token]] ​in a [[action:​Set_Variable_to_Text|Set Variable to Text Action]], and when you trigger the macro it will be replaced with the title of the current Safari tab.  So the value of the Token will be determined at execution time.  All tokens return a text value, even if the source data was some other data type.
  
 Tokens allow you to add textual information to [[/​Text_Fields|token text fields]]. ​ You can insert tokens into a field using the Insert Token popup near the field or by choosing [[manual:​Menus#​Edit_Insert_Token|Insert Token]] from the [[manual:​Menus#​Edit|Edit menu]]. ​ You can also start typing a token and use text completion to complete the token. Tokens allow you to add textual information to [[/​Text_Fields|token text fields]]. ​ You can insert tokens into a field using the Insert Token popup near the field or by choosing [[manual:​Menus#​Edit_Insert_Token|Insert Token]] from the [[manual:​Menus#​Edit|Edit menu]]. ​ You can also start typing a token and use text completion to complete the token.
Tokens.txt ยท Last modified: 2020/08/17 21:27 by peternlewis