MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
javascript
Search

How to Use JavaScript When Creating Shortcuts

Wednesday January 16, 2019. 05:43 PM , from TheMacObserver
Redditor u/keveridge put together a nice guide on how to use JavaScript when creating Shortcuts. JavaScript lets you perform complex actions that would be hard to do with regular shortcut actions.

We make use of the Safari web browser, running within the shortcut, in order to execute the JavaScript. To do so, we:

make an HTML file that contains our code and provides an output;

pass the contents of the file to Safari as a Data URL;

use Get Contents of Web Page to render the page provide the output to the shortcut.
https://www.macobserver.com/link/guide-javascript-shortcuts/?utm_source=macobserver&utm_medium=rss&u...
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Current Date
Nov, Fri 22 - 02:15 CET