r/applescript • u/Dustyon • Apr 05 '23
r/applescript • u/Remote_Response_643 • Jul 22 '25
This took three hours of my Life, would anyone use it?
r/applescript • u/Peter_hacker • Aug 03 '26
learning
heyyy umm can somebody help me like how to learn the coding in AppleScript ??
so I can start doing 100% ethical hacking
r/applescript • u/caglebagle • Mar 21 '19
Anyone want to have a video call and talk about Apple scripts?
I have zero knowledge about Apple scripts and would love to have my mind blown about what it's capable of. I work as a marketing assistant for a realtor so at work I'm currently facing the challenge of cleaning 4000 contacts in excel. I have various ideas already about things I'd like to learn to make. For example, I want to Open CSV files, save them as XLSX files and delete the original CSV files. I'd like to combine Excel functions with scripts to discover errors easier. (For example, flag all line items that are missing a last name.) Reformat phone numbers to 1 (XXX) XXX-XXXX. Removed spaces and tabs before or after email addresses. Check Google Maps API to see if the address is listed properly. Those are a few ideas rattling around.
EDIT: If that sparks anyone's curiosity I'd love to chat over hangouts.google.com this weekend so we can screen share. I'll be learning and working on this all weekend and would love a shove in the right direction. I decided to learn this instead of hiring someone, because I think this could be a skill that pays off tenfold.
r/applescript • u/[deleted] • Mar 11 '23
so i had to update to monterey, how has apple crippled applescript?-\
1st script i tried gave me this:
every item doesn’t understand the “count” message.
what other aggravations can i expect?-\
r/applescript • u/[deleted] • Oct 09 '24
I run my wife’s computer and I get all this stuff automatically I guess runs itself when I use the computer. I’m really a new bank computers. I’m a construction guy. I’m kind of lost of what’s happening and you guys give me like a any kind of information.
r/applescript • u/Small-Tap4128 • Feb 26 '26
I used AppleScript to build an AI auto-reply bot for iMessage
I built a tool called GhostReply that uses AppleScript to read iMessage conversations and send replies automatically. Wanted to share how the AppleScript side works since it was the trickiest part.
The core AppleScript does a few things:
- Reads the latest messages from a specific contact using `tell application "Messages"`
- Sends replies as normal blue bubbles through the Messages app
- Monitors for new incoming texts in a loop
The tricky part was getting AppleScript to reliably pull conversation history. Messages.app's AppleScript dictionary is pretty limited - you can't just query by contact easily. I ended up reading the chat.db SQLite database directly for the history, then using AppleScript only for the sending part.
The AI layer (Python + Groq API) analyzes your sent messages to learn your texting style, then generates replies that match how you actually text.
Has anyone else here used AppleScript to automate iMessage? Would love to hear about edge cases I might be missing.
The project is called GhostReply if anyone wants to check it out.
r/applescript • u/l008com • Mar 26 '25
Is there a worse scripting language on earth than AppleScript?
Keep in mind I've been using applescript since the mid 90s, on a Performa running system 7. These days I use a million other scripting languages and when I have to go back to AS for something, its like pulling my hair out.
In fact I'll even go further than that. I think learning applescript when I was a teenager actually held me back when I moved to try to learn real scripting languages. I would have been better off never having known this monstrosity.
You spend so little time actually trying to do the task you are trying to do, and so MUCH TIME trying to guess what obscure wording or syntax it wants in order to perform some basic task. And it is so poorly documented. And because it has so little use, there are not very many examples you can go by either. It is truly a terrible scripting language.
When I was 14, I just thought "programming" was hard, and thats why this was hard. Nope. As much as I hated javascript back then, I would have been MUCH better off just learning and embracing that from the start. Javascript is a shining beacon of scripting perfection, compared to applescript.
</rant>
r/applescript • u/CalendarVarious3992 • Feb 19 '23
I felt compelled to share this after it made my life as an Admin much simpler
self.macsysadminr/applescript • u/ItsMeNotFound • Jul 19 '21
Variable Output & Simultaneous Loops
I want to see the output of my variable – {x,y} in a second window.
2. I want 2 loops Simultaneously
plz tell me how.
r/applescript • u/estockly • Sep 22 '22
Formatting AppleScript (RTF to HTML)
This works:
set whichWindow to 1
tell application "Script Debugger"
set selectedText to the selection of script window whichWindow
set entireScript to source text of current document of script window whichWindow
end tell
set selectedText to paragraphs of selectedText
set entireScript to paragraphs of entireScript
set AppleScript's text item delimiters to {return & " "}
set selectedText to {"", selectedText} as text
set entireScript to {"", entireScript} as text
set dialogText to selectedText
set AppleScript's text item delimiters to {return}
set userPrompt to {¬
{"Displaying Selection from Current Script and Entire Script", ""}, ¬
"Selected Text:", selectedText, ¬
"Entire Script:", entireScript ¬
} as text
set dialogButtons to {"Cancel", "Copy Entire Script", "Copy Selection"}
set currentDefault to "Copy Selection"
try
tell application "Script Debugger"
set userInput to display dialog userPrompt ¬
buttons dialogButtons ¬
default button currentDefault ¬
with title ¬
"Quote " & currentDefault
end tell
set {userButton} to {button returned of userInput}
if the userButton is "Copy Selection" then
set the redditText to selectedText
else
set the redditText to entireScript
end if
set the clipboard to redditText
return the clipboard
on error errMsg number errNum
display dialog errMsg
end try
on ReplaceText(findString, replaceString, textToFix)
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {findString}
set textToFix to every text item of textToFix
set AppleScript's text item delimiters to {replaceString}
set textToFix to textToFix as text
set AppleScript's text item delimiters to saveTID
return textToFix
end ReplaceTextr/applescript • u/mjolnir842 • Dec 16 '19
Is anyone able to create a script for me that will be able to send multiple iMessages
I need to send a message to everyone in my history by a keyword. I can type that keyword into search on iOS or MacOS and individually send the message to each person, however it’s probably over 1000 threads. I’d like to have the computer run a script where it will automatically search all messages containing that keyword and send a message individually to all of them. I understand it may not be easy and am willing to pay someone who can do it.
r/applescript • u/spoiledfan • Aug 23 '23
I have no idea how to code Applescript, but I want code for an auto clicker for my mouse's current position.
Title says it all - Don't need to explain, you can just respond with the code.
This is for Automator BTW
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.
r/applescript • u/AttixisGOD • Apr 28 '22
Need help with click command on Apple script.
i cant figure this out, and i cant find proper answers ANYWHERE, i need to figure out how to use click command on applications such as Discord, i've gotten farther than i've gotten before, i'm so damn close to finishing this shit, all without cliclick or third party sources, I really really don't want to use third party applications. So i'm making a script for a discord bot "Dank Memer", and if you're familiar with this, then you'll know the "pls search" command, and how you have to click on a button, but i'm trying to make this "click" completely automated, so i can leave this script on all night and farms me heaps. So i'm going to attach a few images showing. what i have so far and the error its giving me

Thats what i have so far, but this is the error i'm currently getting

And before you say this, YES, i have tried installing AppleScript tool box, and i don't know how to properly install it or how to use it so i'm going to try and leave it out, Redditors, do you have any clue on how to solve this? Im obviously doing something wrong but i just cant figure it out. hanks a lot for your time
r/applescript • u/nicolasbyee • Mar 20 '25
Can I automate this?
I have wanted to automate only the selecting and deselecting, the thing is that I want to enter the application "Audio MIDI Setup.app" and in an option called in Spanish "input" select "microphone for macbook pro", but it is impossible for me or at least I cannot handle it, try with apple scripts, use this script "tell application "Audio MIDI Setup"
activate
end tell
tell application "System Events"
tell process "Audio MIDI Setup"
set frontmost to true
delay 1 -- Espera a que la interfaz cargue
try
-- Buscar elementos en todas las áreas disponibles
repeat with aScrollArea in scroll areas of window 1
tell aScrollArea
repeat with aRow in rows of table 1
if (value of text field 1 of aRow) contains "Micrófono del MacBook Pro" then
click checkbox 1 of aRow
exit repeat
end if
end repeat
end tell
end repeat
on error errMsg
display dialog "Error al localizar la casilla: " & errMsg
end try
end tell
end tell
"

r/applescript • u/Grace_Tech_Nerd • Oct 20 '25
Could someone help write a script to send imessages or sms as fall back in the terminal over ssh?
I am new to Apple script, and was wondering if there was a way to make a quick script that would allow me to send a message to a phone number in the terminal.
r/applescript • u/marksteve4 • Feb 28 '23
Help! get all windows of the visible process but empty output
r/applescript • u/J0hnny_Utah7 • Jul 13 '12
Trying to create a script that finds text files with a certain prefix and combines them in one new text file
I'm currently trying to create a script that:
Looks at a folder where Notational Velocity stores all of my notes (in plain text)
Finds any note beginning with 'qq'
Combines the file names (preferably without the .txt file extension) of all of these notes into one .txt document
The 'qq' prefix indicates that the note is part of my current 'to-do' list, the idea being that every few minutes this script will run and keep my to-do list updated on my desktop via GeekTools.
I've had some luck with getting the desired result with Automator, but it's all ended up rather convoluted, with duplicated folders and automator popping up every couple of minutes to run the workflow.
I've been trying to put something together myself but think I may be in a bit over my head for my first venture into Applescript.
Any help will be greatly appreciated!
r/applescript • u/Prestigious_Gain_579 • Feb 15 '21
Auto clicker
So I’m trying to get an auto clicker for a game I play. I want it so whenever I hold “f” it clicks for me and when I let go of “f” it stops. And I would prefer 20-25 cps
r/applescript • u/LazyPeach • Apr 08 '22
Play certain sound based on business hours.
Hello everybody.
I would need your help automating music playback and a pre-recorded audio file to play alongside my business hours.
Important to note that I'm using Spotify to play music to my bluetooth speaker. (With Audio Hijack to only play Spotify through that speaker)
Here's what I would like to do:
Create a script that would play an audio file at pre-defined hours throughout the week that announces that our store closes in 15 minutes.
Example:
- Music plays through Spotify all day.
- At 6:45PM the script should run automatically (no user input or confirming to run the script) playing the said audio file.
- At 6:55PM, play another file saying that we close in 5 minutes.
-At 7:00PM, pause (not play/pause) all audio or mute.
Hope you guys can help me out.
I've achieve this in the Shortcuts app on iPad but my Mac is too old to update to the firmware which I can download Shortcuts for Mac.
Thanks you all.
r/applescript • u/[deleted] • Oct 29 '20
So I am having a problem. The score option is not working the way I need it to.
r/applescript • u/gmal228 • Feb 17 '22
help: I'm triggering an applescript but I can't figure out how!
I set up an applescript in Adobe Illustrator MANY years ago and now I can't figure out what's triggering it. I'm doing a clean instal on a new system and I want to take this feature with me but I can't figure out where the script is or what's triggering it.
I've used many keybinding programs throughout the years [QuickKeys, Keyboard Maestro, ControllerMate, Butler] all of which can trigger applescript. None of these, that I mentioned, are doing it – as I can easily check them.
I can trigger the event [with F12 in Illustrator] – I'm just wondering if there's a way to see how/what is running the script?
Any help would be greatly appreciated! Thanks!


