3 ms·
I use AppleScript nearly every day, mostly to grab little bits of info from one app & tell another app to do something with it. For example, I have one that gr
by favorited 4y ago
I use AppleScript nearly every day, mostly to grab little bits of info from one app & tell another app to do something with it. For example, I have one that grabs the URL & page title of the foremost Chrome tab, switches to Terminal, and starts a youtube-dl process with the Chrome URL. It's just a little shortcut to download whatever I'm currently watching.
It's wonderful because it's so much simpler than building a real integration or application, but it's also terrible because of (A) how tedious it is to actually write AppleScript and (B) how flaky/racy UI automation can be unless you're using great tools.
- bobbylarrybobby 4y agoAppleScript is a terrible yet reasonably well documented language. At the other end of the spectrum is JavaScript for automation (JXA), which exposes all the same APIs AppleScript does (modulo the spelling of function names), is a much more sane language, and is barely documented. I find that AppleScript is like bash and JXA is like python in terms of how complicated a script can be before you swift from the former to the latter.
- WirelessGigabit 4y agoHa. I run a shortcut on my phone to send the url to metube on my server.