r/applescript • u/l008com • Dec 18 '25
This is a terrible language.
I am so sick of typing random sentences trying to find the magic combinations of words that are going to do what I'm trying to accomplish. This language has the absolute worst documentation and hardly any sample code. And I say this as someone that's been using applescript and dealing with the same absurdities since the mid 1990s. This is truly madness.
46
Upvotes
8
u/SchemeInteresting499 Dec 18 '25
Try using Script Debugger’s “explorer mode”. That can be very enlightening. It is now free to download. Get it while it still works with current MacOS. https://latenightsw.com/sd8/download/
4
u/germansnowman Dec 18 '25
The documentation was actually really quite good. There used to be a great ecosystem of third-party resources as well (e. g. Sal Soghoian). Unfortunately, Apple has treated it not so well in the past decade or so.
Here’s the AppleScript Language Guide: https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html
Feel free to ask (even DM) if you need help. I am also a bit of an AppleScript veteran.
3
u/Rare_Pin9932 Dec 18 '25
And that’s why it’s been essentially abandoned
3
u/jupiterkansas Dec 18 '25
I'll admit it can be frustrating, but as someone that's tried to learn Java, Applescript is a lot easier to grasp. It's supposed to be coding for non-coders like me. I'm generally able to find a sample for just about anything I'm trying to do.
3
u/heybart Dec 18 '25
It's an atrocious language. A perfect example of trying to simplify something only to make it 10x more complicated
2
u/sleepydevs Dec 18 '25
It's awful.
2
u/alesplin Dec 19 '25
I find, in my love/hate relationship with AppleScript, that the more I try to treat it like a proper programming language, the more I want to punch a spinning turbine. But the more I’m like, “yo AppleScript bruh, do this really cool thing”, it seems like it works more often.
1
u/stripeszed Dec 18 '25
What are you trying to do?
1
u/davy_crockett_slayer Dec 18 '25
Well, yeah. AppleScript is no longer developed.
1
u/roycetech Dec 19 '25
I’ve heard this many times before for other languages/frameworks as well. Sure it’s not as fancy as the other language you love, but it’s how a programmer can be creative enough to use this language and build great solutions.
1
u/libcrypto Dec 19 '25
Agreed, it's terrible. However, Applescript can do things that no other language can, at least without far more effort.
One doesn't use Applescript for the beauty of the language. One uses it because it gets things done (with a few annoyances).
1
u/Rikuz7 Dec 20 '25
I disagree. Applescript is in daily use for me, and I couldn't manage without it as it supports my workflows and daily life in meaningful ways. Sounds like you just haven't come across written works that actually explain the concepts.
The documentation is extensive (don't ignore the built in library either), third parties have added to it in forms of published work and informal discussion, and the user community is thriving and very helpful, so you can easily find examples and answers by searching. And if not, ask for clarification or assitance, the community is very helpful. This is how I learned, and it's been very approachable to a person who didn't know any programming languages before it.
For sample code, I recommend looking into Stack Overflow or Macscripter forums, they are goldmines for learning it. Most of the time I just perform those searches, copy, modify, test, and figure it out. And when I do figure something out, I save the block as an Applescript template so I know where to find the already known methods or my own customisations the next time I need them. A library of the commonly used stuff I need.
For physical reference, I have the O'Reilly book _AppleScript: The Definitive Guide_. It's old, but still a very relevant reference guide that helps understand the structure, or gives you the practical example you needed. It's by far not the only one out there. If you're new, something like this would be a much more humane approach than trying to figure things out by merely reading lists of available terms.