This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:Dictionaries [2017/09/04 01:53] peternlewis |
manual:Dictionaries [2017/09/04 02:04] peternlewis |
||
---|---|---|---|
Line 21: | Line 21: | ||
{{:token:dictionary-example.png?nolink&568|}} | {{:token:dictionary-example.png?nolink&568|}} | ||
- | ===== See Also ===== | + | You can list the dictionaries with the [[collection:Dictionaries|Dictionaries]] collection, and you can list all the keys within a dictionary with the [[collection:Dictionary_Keys|Dictionary Keys]] collection. |
- | === Actions === | + | ===== AppleScript ===== |
- | * [[action:Set_Dictionary_Value|Set Dictionary Value]] action | + | You can read and write dictionary values from AppleScript. |
- | === Collections === | + | ```applescript |
+ | tell application "Keyboard Maestro Engine" | ||
+ | name of dictionaries | ||
+ | end tell | ||
+ | ``` | ||
- | * [[collection:Dictionaries|Dictionaries]] collection | + | ```applescript |
- | * [[collection:Dictionary_Keys|Dictionary Keys]] collection | + | tell application "Keyboard Maestro Engine" |
+ | dictionary keys of dictionary "First Names" | ||
+ | end tell | ||
+ | ``` | ||
- | === Forum === | + | ```applescript |
+ | tell application "Keyboard Maestro Engine" | ||
+ | set value of dictionary key "P" of dictionary "First Names" to "Fred" | ||
+ | end tell | ||
+ | ``` | ||
- | - [[https://forum.keyboardmaestro.com/search?q=Dictionary|Keyboard Maestro Forum topics about Dictionaries]] | + | ===== See Also ===== |
+ | See also the [[action:Set_Dictionary_Value|Set Dictionary Value]] action, the [[token:Dictionary|%Dictionary%]] token and the [[collection:Dictionaries|Dictionaries]] and [[collection:Dictionary_Keys|Dictionary Keys]] collections. |