~~~ VER: 1.1 2017-04-22 ~~~
- Extract or Set Web Page Data easily
- The script determines which Browser is FrontMost and uses the appropriate scripting terms for that Browser.
- KM Variable
- Choose File
- Provide an Error Handler for both JIB and JXA Scripts
- Provide an example of using a JXA script to
- Execute scripts in Browswers
- Get Web Page Info without JIB
HOW TO USE:
- You could easily add a Prompt for User Input Action to select this.
- Open the Web Page of Interest in Safari or Chrome
- Trigger this Macro
- Results are displayed and put on Clipboard
Carefully review the Release Notes and the Macro Actions
- Make sure you understand what the Macro will do.
- You are responsible for running the Maco, not me.
- Assign a Trigger to this maro. I prefer to Trigger by Name.
- Move this macro to a Macro Group that is only Active when you need this Macro.
- Enable this Macro.
REVIEW/CHANGE THE FOLLOWING MACRO ACTIONS:
(all shown in the magneta color)
- OPTION: If you choose to change the name of the KM Variable used in the Execute JXA Script, then you must also change it in the Script Error Handler:
- Action: CHANGE Variable in "to:" Block to Variable You Used Above
- Any Action in magenta color is designed to be changed by end-user
ACTION COLOR CODES
- To facilitate the reading, customizing, and maintenance of this macro,
key Actions are colored as follows:
- GREEN -- Key Comments designed to highlight main sections of macro
- MAGENTA -- Actions designed to be customized by user
- YELLOW -- Primary Actions (usually the main purpose of the macro)
- ORANGE -- Actions that permanently destroy Varibles or Clipboards,
OR IF/THEN and PAUSE Actions
- Keyboard Maestro Ver 7.3+ (don't even ask me about KM 6 support).
- El Capitan 10.11.6+
- It make work with Yosemite, but I make no guarantees.
USE AT YOUR OWN RISK
- While I have given this limited testing, and to the best of my knowledge will do no hard, I cannot guarantee it.
- If you have any doubts or questions:
- Ask first
- Turn on the KM Debugger from the KM Status Menu, and step through the macro, making sure you understand what it is doing with each Action.