Questions tagged [script]
A collection of commands that may be from a CLI Shell, or programming language such as AppleScript, which are executed in order with limited iteration, usually as a way of automating actions or events.
788 questions
0
votes
2
answers
74
views
Is it possible to make this script "safe"? [closed]
#!/bin/bash
# Download Installomator
curl -fsSL https://raw.githubusercontent.com/Installomator/Installomator/main/Installomator.sh -o /usr/local/bin/Installomator
chmod +x /usr/local/bin/...
0
votes
0
answers
73
views
locate.updatedb script stopped working on Tahoe 26.2
I've just upgraded to Tahoe 26.2 (25C56) and noticed it made the locate daemon disabled.
$ cat /System/Library/LaunchDaemons/com.apple.locate.plist
<?xml version="1.0" encoding="UTF-...
0
votes
2
answers
151
views
Getting error - folder doesn't exist in Scriptable for iOS26
I'm trying to make a shortcut to delete some files with the help of Scriptable app in iOS26.
I want to search inside a specific folder (iCloud Drive > Images) for JPEGs & if found delete all of ...
0
votes
1
answer
387
views
Remove Local Messages from macOS
I have a small internal storage of 500GB on my Mac (macOS Sequoia 15.6), and Messages often takes up a large portion of it. I would like to be able to delete my Messages data locally in such a way ...
0
votes
0
answers
40
views
fast user switch: is there a way to speed up the animation between changing users?
When using CTRL-Cmd-Q or clicking a user from the fast user switcher dropdown menu, is there a way to speed up or eliminate the animation the occurs (it's a rotating box) as the action complete to the ...
0
votes
0
answers
61
views
launchctl: Run script when network interface is added/comes up?
I'm looking to run a script when 'bridge100' interface is added with an IP. How is this accomplished?
I see this post to add the following, however I'm not sure how one can understand that 'bridge100'...
0
votes
1
answer
323
views
Running shell script with Touch ID authentication
Leveraging AppleScript, we can run a shell command that requires sudo by asking for elevated permissions, which in turn shows a prompt to the user. For example:
do shell script "/usr/bin/say ...
1
vote
0
answers
137
views
MacOS: How to prevent DHCP server sending traffic to interfaces?
How can I prevent the Mac v13.7.3 DHCP server from sending traffic to network interfaces? I.e. how can I manage this?
I'm trying to invoke dnsmasq and another application is using port 67 socket. I ...
0
votes
0
answers
86
views
Update /etc/resolv.conf without removing old entries? Upon network connection?
Is there a script hook that's invoked when connecting to a network after or during /etc/resolv.conf being updated (usually with DNS entries from DHCP server)?
I'm running a bind name server on ...
0
votes
1
answer
319
views
how to invoke python virtual environment from script
Context: MacOS Ventura 13.6.7
A Python virtual environment successful invokes from the command terminal:
source my3211/bin/activate
My pyActivate.sh script:
echo "source my3211/bin/activate"...
1
vote
0
answers
39
views
How do I assign a keyboard shortcut to an application-specific script?
I've created a Javascript filed as Submit form JXA in ~/Library/Scripts/Applications/Numbers.
Submit form JXA appears as a menu item in the Scripts menu when Numbers is front window. Clicking this ...
0
votes
0
answers
241
views
How to make an app start automatically at login using Daemons?
I have installed Jomo on my Mac, located at /Applications/Jomo.app, and I want it to start automatically when I log into my account. I want to create a script to make it run once I log in, without ...
1
vote
1
answer
275
views
My automated "click" Applescript has just stopped working
Right up until a week ago, my simple Applescript that had to simply click on a specific coordinate on screen just stopped working.
Here is the Applescript:
tell application "System Events"
...
0
votes
1
answer
227
views
Help writing a Microsoft Intune compliance script for macOS
May I please get assistance with a Microsoft Intune compliance script for macOS.
If (app) is not installed set, device as non compliant.
This is the srcipt I tried but its isn't working. I want to ...
2
votes
1
answer
1k
views
What is the simplest way to detect internet connectivity on macOS with a script?
I know I can use ping or nc, but macOS itself must be storing the state of internet connection somewhere right?
For example, when you connect to Wifi, with no internet, macOS gives an indication (in ...