Questions tagged [applescript]
AppleScript is a proprietary programming language in macOS to control and exchange data with applications.
3,472 questions
0 votes
2 answers
28 views
Auto Log Dictionary searches
I tried creating a script to automatically search definitions and log the word to a document. Keystroke doesn't seem to work: on run {input, parameters} -- Save current clipboard content to ...
1 vote
1 answer
67 views
How to automatically remove all item builds from all slides in a Keynote Presentation?
I have Keynote presentations that contain slides with item builds. I would like to be able to remove item builds from every slide of a given presentation automatically (i.e., without clicking on each ...
1 vote
0 answers
40 views
How to get/display real volume level of external monitor (in SketchyBar, shell script) on macOS?
I'm trying to display the volume icon and percentage of my external monitor (Dell U4025QW) audio output in SketchyBar on my MacBook Pro (M1). The goal is to show accurate volume and mute status in the ...
0 votes
0 answers
39 views
I am having problems getting an apple script to access exchange mailboxes
macos 15.5 (24F74) set destinationMailbox to "personal" of account "Exchange" give a message Can’t get "personal" of account "Exchange". Access not allowed. I ...
1 vote
2 answers
71 views
Automating multiple global replace in TextEdit?
For language learning, I frequently copy text from a website, paste into TextEdit, and do more than a dozen formatting changes. Several of these are the same for all languages, so I save the file, do ...
0 votes
0 answers
45 views
Automatically copy a message in Mail.app to a directory
If I drag an e-mail to a directory, Finder makes a copy, so that the message also remains in Mail.app. I would like to make this happen automagically when the mail matches certain criteria (for ...
0 votes
0 answers
35 views
How to change background Color of AppleScript Log Window
I’m trying to learn AppleScript. The log window is a great help. But the background color of this window is black. It’s hard to read the output because the text color is dark gray. How can I change ...
0 votes
1 answer
160 views
Add script to Finder’s Quick Actions menu
I want to add my AppleScript script in the Quick Actions menu in the Finder toolbar: The important thing to say is that I want the script to be available even if no files or folders are selected. ...
0 votes
0 answers
36 views
Missing cursor in AppleScript code editor
I am using Automator to create a folder action. This action uses a run AppleScript action, therefore I have an AppleScript editor in the Automator window. Problem is, there is no cursor when editing ...
1 vote
1 answer
94 views
Why does my AppleScript keystroke command have a 9-second delay on my new 15-inch M3 MacBook Pro?
I recently upgraded my work computer to a 15-inch, 2024 M3 MacBook Pro running macOS 15.3.2 (24D81). I have a simple AppleScript that simulates a paste command: AppleScript Copy Edit tell application &...
0 votes
0 answers
34 views
AppleScript: "process 'Google Chrome'" has two windows, but "application 'Google Chrome'" has zero?
I'm trying to do something very simple - use AppleScript to execute a single line of JavaScript on an active tab in Google Chrome. For the life of me, I can't figure this out. The problem I'm ...
0 votes
1 answer
103 views
Using Apple script to delete selected items if they contain a specific string
I am almost totally ignorant in scripting, although I am a bit of a geek and several times I managed to edit and adapt code i found on the web, to perform simple but useful tasks that we use in mine ...
0 votes
1 answer
84 views
How can I debug an AppleScript failure after moving to a new Mac running Sequoia?
Id like help to figure out why this script fails to work now that I my moved my system from a 2012 Mac mini running Catalina to new M4 mini. I use 2 external HD's for storing iTunes and movie data ...
0 votes
0 answers
55 views
AppleScript to Schedule Emails for Specific Date
I am in the process of writing a small Python Script to automate sending some emails that I send every week, specifically every Monday at 8 AM. The Python script calculates when the next Monday will ...
0 votes
1 answer
95 views
Convert an if-condition from Automator-powered AppleScript to pure AppleScript
Here is an AppleScript script to make it possible double-click files in Finder so that they will be opened in Vim, by Normen Hansen: https://github.com/normen/vim-macos-scripts/blob/master/open-file-...