User Tools

Site Tools


action:Execute_a_JavaScript_in_Custom_Prompt

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
action:Execute_a_JavaScript_in_Custom_Prompt [2023/09/12 05:01]
peternlewis
action:Execute_a_JavaScript_in_Custom_Prompt [2023/09/14 23:59]
peternlewis
Line 1: Line 1:
 ====== Execute JavaScript in Custom HTML Prompt ====== ====== Execute JavaScript in Custom HTML Prompt ======
  
 +The //Execute JavaScript in Custom HTML Prompt// action let you execute JavaScript in a [[action:​Custom_HTML_Prompt|Custom HTML Prompt]] window.
 +
 +{{ execute-javascript-in-custom-html-prompt-action.png?​nolink&​674x161 | Execute JavaScript in Custom HTML Prompt Action }}
 +
 +This action allows you to execute a specified JavaScript, either from a file or text entered in the Action itself, and return the results.
 +
 +===== Specify the Custom HTML Prompt =====
 +
 +You can specify a [[action:​Custom_HTML_Prompt]] with a matching [[action:​Custom_HTML_Prompt#​HTML_Window_Design|data-kmwindowid]] to apply the JavaScript to, otherwise it will be applied to all open Custom HTML Prompt windows.
  
 ===== Options for Returning Results ===== ===== Options for Returning Results =====
Line 21: Line 30:
  
 You can use the window.KeyboardMaestro facilities of the [[action:​Custom_HTML_Prompt|Custom HTML Prompt]] to read and write Keyboard Maestro variables. You can use the window.KeyboardMaestro facilities of the [[action:​Custom_HTML_Prompt|Custom HTML Prompt]] to read and write Keyboard Maestro variables.
- 
-===== Specify the Custom HTML Prompt ===== 
- 
-You can specify a [[action:​Custom_HTML_Prompt]] with a matching [[action:​Custom_HTML_Prompt#​HTML_Window_Design|data-kmwindowid]] to apply the JavaScript to, otherwise it will be applied to all open Custom HTML Prompt windows. 
  
 ===== See Also ===== ===== See Also =====
action/Execute_a_JavaScript_in_Custom_Prompt.txt ยท Last modified: 2023/11/28 03:07 by peternlewis