Questions tagged [applescript]
AppleScript is a proprietary programming language in macOS to control and exchange data with applications.
3,481 questions
1
vote
1
answer
163
views
AppleScript Written on Intel iMac Runs Very Slow When MBA Exported As app on M2
Some years ago Apple dropped support for my ancient Canon Lide 30 scanner. So, I hung it off a Raspberry Pi (which still supports the scanner via scanimage) and wrote a very simple Apple Script and an ...
0
votes
1
answer
55
views
Applescript to set EQ of a track
In Applescript, if in my script
pl is a playlist just created
fpathStr is the absolute path to a track in the library
falias "is" or "points to" that track
falias is POSIX file (...
-2
votes
1
answer
41
views
Creating/populating a playlist wih AppleScript
I have a script that imports MP3 tracks and puts their imported filenames into a playlist. Around 350 times, I have dragged the m3u8 file into Music's songs view and then set the equalizer on all of ...
0
votes
1
answer
70
views
Applescript passing arguments to Automator shell script inside a Quick Action
Automator automatically stores results from Applescript execution, but I can' t get them inside a Shell script executed right after.
I' ve trid the $@, $1, $2 variable names but i only get an empty ...
0
votes
0
answers
43
views
Applescript reports window as visible when it's not
I have a bash script that uses Applescript to detect Outlook's Reminder window. The script stopped working with a recent update to Outlook. I found that Applescript has started reporting the Reminder ...
0
votes
0
answers
31
views
How do I copy multiple files from the CLI to the macOS's clipboard? [duplicate]
Followup to How do I copy multiple files to the macOS's clipboard?
Similar question but doesn't work: How do I copy multiple files to macOS's clipboard programmatically?
I'm searching for a ...
1
vote
0
answers
118
views
How do I copy multiple files to the macOS's clipboard using a CLI command?
Similar question but doesn't work: How do I copy multiple files to macOS's clipboard programmatically?
I'm searching for a way to add files to the system clipboard for macOS.
Context: I'm ...
0
votes
1
answer
151
views
How to add escape characters to a text string in AppleScript?
I am running macOS Tahoe on a Mac mini M4.
I have an AppleScript that generates a file name from a folder lookup as a POSIX path, The result is in a variable sfil2.
/Users/mkaz/Documents/Startup ...
0
votes
1
answer
56
views
Is it possible to write an AppleScript for Keynote that will change the color of a shape after I have clicked the shape?
Is it possible to write an AppleScript for Keynote that will change the color of a shape after I have clicked the shape?
I'm trying to make a Jeopardy board and I need a way to show what is still ...
0
votes
0
answers
90
views
macOS won’t change wallpaper via AppleScript
I have three monitors on a Mac mini m4 v 15.1 with the following configuration:
I tried to change wallpaper via AppleScript on a multi-monitor setup (no error, no change)
osascript -e 'tell ...
0
votes
2
answers
90
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
143
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
78
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
53
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
99
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 ...