action:Execute_a_JavaScript_in_Custom_Prompt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Execute_a_JavaScript_in_Custom_Prompt [2016/07/27 00:14] – ADD structure and details JMichaelTX | action:Execute_a_JavaScript_in_Custom_Prompt [2023/11/28 08:07] (current) – [See Also] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{: | + | ====== Execute JavaScript in Custom |
| - | ====== Execute JavaScript in Custom Prompt | + | |
| + | The //Execute JavaScript in Custom HTML Prompt// action let you execute JavaScript in a [[action: | ||
| - | The Execute JavaScript | + | {{ execute-javascript-in-custom-html-prompt-action.png? |
| - | The **Execute | + | This action allows you to execute a specified |
| - | * [Execute JavaScript in Safari](https:// | + | ===== Specify the Custom HTML Prompt ===== |
| - | * [Execute JavaScript in Chrome](https:// | + | |
| + | You can specify a [[action: | ||
| - | ===== Source of Script | + | ===== Options for Returning Results |
| + | * ignore results. | ||
| + | * display results in a window. | ||
| + | * display results briefly. | ||
| + | * display results large. | ||
| + | * type results. | ||
| + | * paste results. | ||
| + | * save results to variable. | ||
| + | * append results to variable. | ||
| + | * save results to the system clipboard or a named clipboard. | ||
| + | * save results to a file. | ||
| + | * asynchronously | ||
| - | The JavaScript may be from any of the following: | + | If the results are to be saved to a variable or a clipboard then further text areas appear in the action allowing you to specify |
| - | * From a JavaScript file | + | ===== Using Keyboard Maestro Variables ===== |
| - | * From the text script in the Action | + | |
| - | * Using any custom functions in the HTML Prompt. | + | |
| - | ===== Target | + | You can use the window.KeyboardMaestro facilities |
| - | The JavaScript is executed in a specific [Custom HTML Prompt](https:// | + | ===== See Also ===== |
| + | * [[actions: | ||
| + | * [[actions: | ||
| + | * [[actions: | ||
| + | * [[actions: | ||
| - | ===== Results of Action ===== | + | === Actions |
| - | + | ||
| - | This Action can (optionally) return the results of the JavaScript: | + | |
| - | + | ||
| - | *ignore results. | + | |
| - | *display results in a window. | + | |
| - | *display results briefly. | + | |
| - | *display results large. | + | |
| - | *type results. | + | |
| - | *paste results. | + | |
| - | *save results to variable. | + | |
| - | *save results to the system clipboard or a named clipboard. | + | |
| - | *save results asynchronously | + | |
| - | + | ||
| - | If the results are to be saved to a variable or a clipboard then further text areas appear in the action allowing you to specify the variable or specific clipboard. | + | |
| - | + | ||
| - | ===== Access to Keyboard Maestro Variables ===== | + | |
| - | The JavaScript | + | * [[action: |
| + | * [[:Actions|See all Actions]] | ||
| - | ===== Related | + | ==== Forum ==== |
| - | * [Execute JavaScript in Custom Prompt Question ](https:// | + | - [[https:// |
action/Execute_a_JavaScript_in_Custom_Prompt.1469578451.txt.gz · Last modified: by JMichaelTX
