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 [2016/06/24 18:08]
DanThomas [How To Use]
Tokens [2016/07/05 04:51]
peternlewis Reordered page to include the list of tokens near the top
Line 6: Line 6:
 **Tokens in Keyboard Maestro represent placeholders for information about a specific object.** ​ 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 for information about a specific object.** ​ 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.
  
 +===== List of Tokens =====
  
-----+ 
 +~~NOCACHE~~ 
 +<nspages token -textPages="">​
  
 ===== How To Use ===== ===== How To Use =====
  
 Keyboard Maestro has a wide variety of tokens. Tokens allow you to add information to text fields in an [[Actions|Action]]. You can insert tokens into a field using the **//Insert Token//** popup near the field.  ​ Keyboard Maestro has a wide variety of tokens. Tokens allow you to add information to text fields in an [[Actions|Action]]. You can insert tokens into a field using the **//Insert Token//** popup near the field.  ​
- 
  
  
Line 18: Line 20:
  
  
----- +Most fields that contain text (ie, not just numbers) can include tokens.
- +
-Most fields that contain text (ie, not just numbers) can include tokens ​(the main exceptions being scripts and the Select Menu item action which has its own facilities).+
  
 Action fields that accept tokens also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters \a,​\b,​\e,​\f,​\t,​\r,​\n (bell,​backspace,​escape,​form feed,​tab,​return,​line feed). Action fields that accept tokens also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters \a,​\b,​\e,​\f,​\t,​\r,​\n (bell,​backspace,​escape,​form feed,​tab,​return,​line feed).
Line 27: Line 27:
  
  
----- 
- 
-===== List of Tokens ===== 
- 
- 
-~~NOCACHE~~ 
-<nspages token -textPages="">​ 
Tokens.txt · Last modified: 2020/08/17 21:27 by peternlewis