Questions tagged [automation]
Any thing that helps perform repetitive tasks via an application or script
628
questions
1
vote
0
answers
18
views
Automating Outlook Tasks under Sonoma using AppleScript
I am trying to automate some tasks in macOS Sonoma and Microsoft Outlook 16.78.3 using AppleScript.
This is my simple test script to check if I can access outlook items at all:
tell application "...
0
votes
0
answers
8
views
Automation via icon on desktop (or dock?) of Terminal function .. ? End goal to differently-color all open Terminal windows
Would there be a way to have a file/icon of some sort of my desktop - (or, not as ideal but in the dock) which essentially opens a terminal window via the menu Shell -> New Window -> .. one of ...
1
vote
1
answer
41
views
How to osacompile a script containing `tell Application` and NSAppleScriptEnabled without activating it
How do I compile the following script without actually activating the application during the compilation?
tell application "/Applications/VLC.app" to activate
If I do e.g. this, it will not ...
0
votes
0
answers
29
views
How can I make a shortcut in Shortcuts.app on a Mac/iPhone continue the rest of the flow even if one task failed?
I'm working on a shortcut using the Mac/iPhone Shortcut app, and I need some help. My shortcut consists of multiple tasks, but I've run into an issue. If one of the tasks fails, the entire shortcut ...
0
votes
0
answers
38
views
How do I "toggle" macOS Sonoma Security/Features OFF/ON so I can use the full functionality of the `security` command?
I'm working on a script to import numerous Certs (Like 50) into System.keychain. macOS Sonoma Security Features are preventing the security command from fully working.
Note: Intune MDM Trusted Cert ...
0
votes
1
answer
68
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, ...
1
vote
1
answer
40
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 ...
1
vote
1
answer
46
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 ...
0
votes
0
answers
26
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—...
0
votes
0
answers
20
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 ...
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) ...
0
votes
1
answer
128
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 ...
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" "...
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), ...
1
vote
0
answers
27
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 ...