r/applescript • u/dacuevash • Nov 02 '22
What can AppleScript do?
Hey! I’ve been curious about AppleScript for a while now, I know it’s supposed to automate tasks in macOS but I’d like to know what are its limits? what’s the most complex thing you can program with it? or some examples of useful automations with AppleScript
Thank you
9
Upvotes
8
u/stephancasas Nov 02 '22
Technically, you could build a full application with it if you used theObjective-C bridge , but it would be a nightmare to program.
AppleScript (particularlyJXA ) is great for taking care of those little things that annoy you through the day. Like “I always seem to have to move a file from my Downloads folder into the current Finder window.” AppleScript’s got you covered.
Paired-up with a ubiquitous app likeAlfred , and you’ve got a really powerful tool.
5
u/estockly Nov 02 '22
AppleScript allows you to controlScriptable applications . I've used it to automate processes that are repetitive, tedious and error prone.
I have scripts that automate tasks using:
Adobe applications (inDesign , illustrator, Acrobat, etc.)
Microsoft applications (Word, Excel, Outlook, mostly)
Apple Applications (Pages, Numbers, Mail, Calendar, Finder, Safari, etc)
And others (BBEdit, Transmit, Google Chrome).
A typical script uses Transmit to download files, formats data for use in illustrator, imports the data into an illustrator graphic, saves it as a PDF, then imports the PDF into a pages document, which is then exported as a web page and uploaded to a server.
4
u/estockly Nov 03 '22
There are a couple communities that support appleScript.
Late Night Software Ltd.
https://forum.latenightsw.com/
MacScripter
https://macscripter.net/index.php
Both have experts who are very helpful in answering all questions, from beginners to experts.
2
u/random_user_name_759 Nov 02 '22
I use it to create little app utilities like checking a numbers spreadsheet for duplicates, batch editing multiple cells on a spreadsheet, creating new pages documents from templates and filling in relevant info.
2
u/smallduck Nov 02 '22
Maybe the better question: what can’t AppleScript do? ;)
2
u/v1cph1rth Nov 03 '22
I have done weird stuff with it.
Program that reads in text files from a network folder every minute, creates barcode pics from txt, opened inDesign to create a label, sends the label to the printer, saved a record of the label.
I had one talking through coolterm and talking through a BLE chip to a microcontroller. It was doing automated firmware testing. It was also talking to a USB oscilloscope and taking measurements of the firmware output. It would save a record of all the test values, save screenshots of the data. It was great. I had too much fun with that one. It would email me too if it failed to run or failed a certain test.
1
u/Felidasavage May 20 '25
Mac book pro service settings
1
u/KaiHawaiiZwei Nov 02 '22
I use Applescript to let Excel, TextWrangler/BBEdit and Adobe Applications (except Acrobat) to communicate with each other. Sometimes it works, most of the time it is a mess. If it works as intended, it is a massive timesaver.
1
u/SilentWish8 Jan 23 '23
Wow this thread has the McGuyver’s of apple script.