3 ms·
You can now write in Javascript instead of Applescript (https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/MacAutomationScr
by otterpro 10y ago
You can now write in Javascript instead of Applescript (https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/ https://developer.apple.com/library/content/documentation/La...). For examples of Applescript equivalent code in Javascript, see https://github.com/dtinth/JXA-Cookbook https://github.com/dtinth/JXA-Cookbook. Yes, Applescript looks horrible, but it was originally designed for non-programmers, so it had very verbose English-like syntax.