Skip to main content

Questions tagged [automation]

Any thing that helps perform repetitive tasks via an application or script

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

How to set macOS Sonoma Dark Mode to work to your schedule?

Using the “Auto” option for appearance switches from light to dark based on sunset and sunrise times. I want to set a custom schedule. For instance, time to time for light, otherwise it's dark. Or, ...
Kamil's user avatar
  • 21
1 vote
1 answer
38 views

MacOS Music script does not work triggered inside app

For years, I've been using a really simple AppleScript to reset Music's AirPlay device back to my computer. I trigger it using a keyboard shortcut Command + E and the script doesn’t run. Same if I use ...
nigel's user avatar
  • 13
1 vote
1 answer
43 views

How can I program my Mac to know when my iPhone is home?

Situation: I wrote an alarm clock app that runs on a MacMini. (No, I have never found any commercial app that works like I want it to.) But sometimes I spend the night away from home, and I don’t ...
Snarke's user avatar
  • 11
0 votes
0 answers
22 views

How can I automate opening a new window if none exists in the current space by a dock click?

I've been customizing my Mac to enhance my productivity and there’s one last hiccup: the Dock's behavior with spaces and opening new windows. Context I use separate spaces for different activities—...
ogaompa's user avatar
0 votes
0 answers
15 views

Make it easier to toggle color filters

I need a more convenient way to toggle this option. I'm happy for it to be a toggled at a keystroke, an option in my top menu bar, or an option in this thing: I initially tried ChatGPT to write an ...
libby's user avatar
  • 151
4 votes
3 answers
1k views

How can I have a non-elevated script execute another specific script as root without requiring a password from the user?

I have a script, let's call it on-event.sh, that's going to be run at specific times, such as when a particular application launches or quits. The script itself will run as the current user (not root) ...
Bri Bri's user avatar
  • 2,518
0 votes
1 answer
119 views

LaunchDeamon file doesn't work [duplicate]

I have a .plist file in the LaunchDeamons directory. It's supposed to run a .sh file (which works) which creates a backup of a directory onto an external drive every day at 00:00. I have tried putting ...
QGuy's user avatar
  • 11
4 votes
7 answers
1k views

Simplest way to create a clickable list in MacOS that will cause selected programs to run

I'm looking for something which runs under macOS that will let me do the following: Suppose I have a file called "program.list" with contents something like this: "Program 1" "...
HippoMan's user avatar
  • 390
0 votes
0 answers
20 views

Custom DNS entries based on Network

I've got a situation where I want to connect to servers using the same name but different ip addresses based on the network I'm connected to. Sometimes I'm working from home (with and without VPN), ...
Geoffrey Wiseman's user avatar
1 vote
0 answers
25 views

Is there an app or tool I can use to make it so that a script will run every time a certain application launches or terminates, without polling?

I want to run a simple shell script any time one of a few different applications terminate. I can identify the applications by their filename, bundle ID, or full path, so any method that can use those ...
Bri Bri's user avatar
  • 2,518
0 votes
1 answer
48 views

How to make this script successfully trigger at a certain time?

I'm not an AppleScript coder or a technical person by any means but I have done some research and came across a solution for my problem statement. My problem statement How to make a mouse click ...
Anshu Chang's user avatar
4 votes
1 answer
72 views

Can macOS add a torn edge to images in clipboard?

I'd like to be able to add torn edges to images in the clipboard on my Mac. I do a lot of documentation and having the ability to add a torn edge around a screen shot helps the people that try to ...
Curious User's user avatar
3 votes
1 answer
21 views

Creating User Accounts with Puppet/Missing ACLs

Currently we use Puppet in my environment to provision a user account seen here and here Recently we noticed on macOS 13 that the user account created were missing ACLs. I believe the missing ACLs are ...
Ryan Curran's user avatar
0 votes
1 answer
202 views

MacOS - Is there a way to automate a single mouse click at a scheduled time everyday?

I'm trying to find a way to emulate a single mouse-click and I want this action to be performed specifically at a certain time everyday (For example: 6am). It is a requirement related to my work as ...
Anshu Chang's user avatar
1 vote
1 answer
221 views

MacOS Ventura cannot reset Automation preferences for a single app

I am developing an application that needs System Events as well as access to individual apps through AppleScript. When I access an application for the first time, it will trigger a dialog asking for ...
Lucas van Dongen's user avatar
0 votes
2 answers
108 views

Can I accomplish similar functionality to Windows Auto Hot Key (AHK) on macOS Sonoma?

I switched recently to an Macbook Pro with an M3 Pro chip after using Windows for a lifetime. I am trying to make a a shortcut which can trigger many different actions and in my case all the actions ...
ibo's user avatar
  • 1
0 votes
0 answers
30 views

spawn two apps in split view from terminal

I often use a local code editor and latexmk to get a UX similar to the Overleaf web-based LaTeX editor. To do this, I: navigate to the project directory in terminal. spawn a text editor in a GUI ...
japreiss's user avatar
  • 101
0 votes
1 answer
141 views

How can I automate via command line a process to prepare video files when my Mac starts?

This is an improvement to previously discussed: Constantly check folder for specific file type and run terminal command with new filename as an argument I used to love Automator for such tasks, but ...
Pavel Pervoy's user avatar
0 votes
0 answers
50 views

Creating an Apple Script to change "Show as Wallpaper" option in "Screen Saver" pane

I am working on a project, and it requires toggling the "Show as Wallpaper" option to True automatically. I've tried using my limited knowledge of Applescript and looking it up, but to no ...
HarlanCheese's user avatar
0 votes
0 answers
53 views

How to open different menus depending on which app is frontmost?

I am trying to create something that opens different menus depending on which app is frontmost. For example If I run it while InDesign is frontmost, I want it to open a menu containing the options &...
JoeReMi's user avatar
3 votes
1 answer
110 views

Can I Make Applescript to Count Number of Files Created?

I would like to start learning AppleScript. I want to add to my workflow a counter that will keep track of the amount of PDFs i create for a job and keep a tally of those documents. I can then forget ...
rcktship's user avatar
3 votes
1 answer
70 views

Bulk copy/export name, Modification & Creation Date from multiple files in a folder

I have a bunch of files inside a folder that I want to get the Date Modified and Created from and copy it into a text document or some kind of tab delimited document. I have no idea how to do this. ...
GodzFire's user avatar
3 votes
1 answer
120 views

An old Logitech MX Master 2S's gesture button is mapped to alt+ctrl+tab: how?

Using either KeyCastr or Karabiner Events Viewer, I can see that my Logitech MX Master 2S's "gesture button" invokes a ⌃⌥⇥. Surely this is something past me has done to present me for some ...
ryanjamurphy's user avatar
1 vote
1 answer
279 views

How to safely clean up resource fork files?

I'm trying to clean up my hard drive to recover some disk space. Part of what I'm doing is merging two large directories of image files that I know have lots of duplicates because they were two copies ...
qazwsx's user avatar
  • 2,611
1 vote
2 answers
73 views

Automatically start a timer after logging health record

I take a medication that needs 30mn to be assimilated by my body before eating anything in the morning. I log it every morning in the Health app to not forget it as it is quite important. I was ...
flks's user avatar
  • 143
2 votes
1 answer
146 views

Unable to rename file in applescript

I feel my AppleScript skills are sorely lacking and hope to learn from this effort. I have code working that will process one or more files dropped on my app. The processing takes an ".mp4" ...
Grandpa Bill's user avatar
1 vote
1 answer
105 views

How to upload file to Google Drive using duck?

I usually access my Google Drive using Cyberduck. So far, no problem with creating folders, moving files, etc. Then I noticed it has a command line interface called duck. Should be handy since I work ...
anta40's user avatar
  • 259
1 vote
1 answer
63 views

Script to open Safari > Preferences > Websites > Notifications

I do not believe that macOS PPPC on Ventura and higher will permit this, but: Is there a way to use AppleScript (osascript) to open Safari's Preferences window and change focus to Websites > ...
da4's user avatar
  • 5,760
0 votes
0 answers
23 views

Run shell script when I use the Voice Assistant button on my headset (MacOS)

Background: I would like to use the Voice Assistant button on my Headset to speak the title of the song that is currently playing. I would like to just have the button trigger terminal command located ...
Klumpy7's user avatar
  • 103
1 vote
1 answer
119 views

Can Automator be used to visit/upload/save images from a website?

I have a folder on desktop with png images. I'd like the images to be sent to a website (Vectoriser.ai). Uploaded one image at a time (multi drop is not available) and save the result to another ...
Bow's user avatar
  • 11
1 vote
2 answers
130 views

Creating a FAT32 SD card image (.img) out of a directory using command-line tools

I'm writing a program which is meant to be loaded and run exclusively from a FAT32 SD card. I need to create an SD card image for distribution as well as for testing the storage and retrieval of files ...
AcinonX's user avatar
  • 113
0 votes
0 answers
148 views

On an iPhone, how to play a specific sound when I receive an email from a given person

This is in the context of the Shorcuts app, automation. The sound file could be anything in the iPhone, starting, say from a mp3 file on a computer. I can't find an obvious way to just specify a file ...
alecail's user avatar
  • 4,010
0 votes
0 answers
75 views

Automation that will automatically update app icon after its updated

I have a lot of apps where the icons are just unpleasant and I've made much better ones that I have applied. while some apps rarely update a good amount of them do which of course mean the original ...
LOVEFIRE's user avatar
1 vote
0 answers
148 views

Make a RTP-MIDI session in "Midi Network Setup" reconnect to a participant after reboot

In a studio setup, I need an RTP-Midi (AppleMidi) session, that is set up via "Audio MIDI Setup" to reinitiate with a participant, after reboot. At the moment, the Session is active but the ...
adrifromhh's user avatar
0 votes
0 answers
25 views

Automatically add additional file name extensions into plist for Emacs?

My Emacs is regularly updated by Homebrew along with other apps. How do I automatically add Markdown file name extension to its plist file (/Applications/Emacs.app/Contents/Info.plist) so Emacs appear ...
Meng Lu's user avatar
  • 253
0 votes
1 answer
878 views

How to Count in an iOS/macOS/watchOS Shortcut?

It feels fairly ridiculous to me that you can't do a simple increment of a counter inside a shortcut that works with all three major shortcut platforms: iOS/macOS/watchOS. There is a repeat_count ...
Christopher Allen's user avatar
0 votes
1 answer
27 views

Auto switch sound sink on power change

I like to switch various working positions at home. I want to make it change to the bluetooth speakers on power plugged in. And switch to internal speakers when unplugged. How to do it with some App ...
xgdgsc's user avatar
  • 751
2 votes
2 answers
200 views

How can select application menu options by fuzzy search using my keyboard only?

When using Ubuntu, I appreciated the Head-Up Display functionality: Press a key combination and enter a search text for the menu item of the currently active application you wish to select. Here's a ...
dsteinhoefel's user avatar
1 vote
0 answers
63 views

M1 Macbook pro: "Add" button missing in automation > Security & Privacy Settings > System preferences

I've been wanting to add "Script Editor" to automation but there seems to be no button to add it. Is there any possible way of achieving this??
Kimchisundae's user avatar
0 votes
0 answers
40 views

Power source-based resolutions using AppleScript and Controlplane? [duplicate]

I've been searching for a good applescript to automatically change my resolution based on my power source and/or shortcuts. For context I'm using macOS Ventura 13.4 and I'm new to scripting, I want to ...
Atharv Tandale's user avatar
0 votes
1 answer
144 views

Auto grab a window screenshot on each mouse click Mac

Is it possible to Applescript an autotake of a screenshot in an app on every mouse click without need to press Cmd+Shift+4->Click every time?
Davids Gaisevskis's user avatar
1 vote
0 answers
54 views

A script to parse internet audio stream from Music.app and save it in a text file [closed]

I listen to the Internet radio in my Music.app on macOS Ventura and I would like a script that could parse the artist and the song name and paste it as a new line in a text file in the background ...
Dmitry's user avatar
  • 57
1 vote
1 answer
172 views

I want to make the same automation as my iPhone and iPad on my MacBook

I want to make this automation of Shortcuts on my MacBook. How can I make it? I also want to make the opposite automation which is ‘Turn Night Shift On” when turning Personal Focus mode off. Maybe ...
Studyveryhard's user avatar
0 votes
1 answer
870 views

How to make Bluetooth MIDI devices automatically connect, in the same way a Bluetooth mouse does

In macOS (or any other OS), if you have a Bluetooth mouse it works right away after booting the computer (after the first pairing when it's new), and if you turn it off and later turn in back on, it ...
OMA's user avatar
  • 677
0 votes
0 answers
30 views

Group HomeKit automatons by topic

I am new to HomeKit and wanted to create my first automations. I have an Eve Energy Smart Plug that should be turned on and off like this: Day of the week On Off Mon-Thu 5 AM 10 PM Fri 5 AM 11:59 ...
TheGreatSnowman's user avatar
1 vote
0 answers
267 views

How do I focus an application in the background with AppleScript. Trying to automate a key press in the background. (not keystroke)

Trying to automate a key press. In Automator, recording a watch me do allows for things to be done in a targeted app. When played, this recording can even run in the background but for some reason, ...
Andrew Vu's user avatar
1 vote
2 answers
780 views

Run location-based Shortcut to toggle airplane mode

I have a simple shortcut that turns on airplane mode when I arrive home. How can I trigger this to run automatically—without tapping for confirmation?
samh's user avatar
  • 4,161
2 votes
0 answers
38 views

Picture-in-picture, but for users?

On my Macbook Pro I have three accounts. One is an Administrator account, the other two are standard users: one for all my work-related stuff, while the other is personal. I keep the two completely ...
marcomastri's user avatar
1 vote
1 answer
80 views

What are some scripting methods that could autofill an iPad?

I've recently went into a new IT job for my school and we're in the process of removing the activation lock on all of the school iPads. I was wondering if I could hook up my laptop (on Windows) to one ...
Selisine's user avatar
2 votes
1 answer
418 views

In macOS mail, is it possible to automatically mark archived messages as read?

I am aware that the macOS mail app has "rules", but I cannot seem to find an option that targets messages in a specific mailbox (except for the spam box).
Thijmen's user avatar
  • 211

1
2 3 4 5
13