Skip to content

Instantly share code, notes, and snippets.

View god107's full-sized avatar

Marcin Twardowski god107

View GitHub Profile
@god107
god107 / com.syncdevice.usb.plist
Last active October 11, 2025 15:18
Apple script for auto sync connected USB device
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!--
Instruction:
1. Replace the placeholder SCRIPT_PATH with the full path to your AppleScript file.
Example: /Users/username/Library/Scripts/sync_recorder.scpt
2. Save this file in the ~/Library/LaunchAgents/ directory with a .plist extension.
Example: ~/Library/LaunchAgents/com.syncdevice.usb.plist
3. Load the LaunchAgent using the following command in the terminal: