← Back to list

Disable Airtame autorun

As Airtame is still an Intel-based app, it isn’t well-optimized and can be a resource hog on Macs with 8GB of RAM. Deploy my script via MDM…

La Clementine · 2026-07-05 18:27 · 0 claps · 1.1 min read
#macos #script #airtame #mdm #apple
Open on Medium ↗

Disable Airtame autorun

As Airtame is still an Intel-based app, it isn’t well-optimized and can be a resource hog on Macs with 8GB of RAM. Deploy my script via MDM to disable its auto-start.

#!/bin/sh

###
#
#                Author : La Clémentine · https://medium.com/@laclementine/
#         Last Modified : 2026-07-06
#               Version : 1.01
#           Tested with : macOS 26.5.2
#
###

# Get current user
CURRENT_USER=$(stat -f %Su /dev/console)

# Set .ini path
INI_PATH="/Users/$CURRENT_USER/Library/Application Support/default-settings.ini"

# Create default-settings.ini
cat << 'EOF' > "$INI_PATH"
[Settings]
autostart=false
EOF

chmod 644 "$INI_PATH"
echo "default-settings.ini created"

# Tell Airtame to terminate gracefully
echo "Stopping Airtame..."
pkill -x "Airtame" 2>/dev/null

# Waiting for all Airtame processes to exit
echo "Waiting for all Airtame processes to exit..."
while pgrep -x "Airtame" > /dev/null; do
    sleep 0.5
done

echo "Airtame has successfully closed!"

# Launching Airtame reset command
echo "Launching Airtame reset command..."
sudo -u "$CURRENT_USER" /Applications/Airtame.app/Contents/MacOS/Airtame --reset-default=true &

# Waiting for Airtame Helper Plugin
echo "Waiting for Airtame Helper Plugin..."
until pgrep -f "Airtame Helper \(Plugin\)" > /dev/null; do 
 sleep 1
done

# Close Airtame
echo "Stopping Airtame..."
sleep 3
pkill -9 -x "Airtame"

# Remove .ini as it is no longer needed
echo "Removing default-settings.ini"
rm -fv "$INI_PATH"

echo "Autorun disabled"
exit 0
# All my scripts must be executable and run with sudo
chmod +x example.sh
sudo example.sh


메타데이터
post_id
b9a2cf6d85b1
slug
disable-airtame-autorun-b9a2cf6d85b1
url
https://medium.com/@laclementine/disable-airtame-autorun-b9a2cf6d85b1
canonical_url
https://medium.com/@laclementine/disable-airtame-autorun-b9a2cf6d85b1
author_url
https://medium.com/@laclementine
status
ok
fetched_at
2026-07-07 02:51:59