Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nateswart/8329172 to your computer and use it in GitHub Desktop.
Save nateswart/8329172 to your computer and use it in GitHub Desktop.
plist to run this AppleScript every minute via launchd
<?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">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.nateofnine.FlaggedMailToReminders</string>
<key>Program</key>
<string>/usr/bin/osascript</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>/PATH_TO_YOUR_APPLESCRIPT/flagged_mail_to_reminders.scpt</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>60</integer>
</dict>
</plist>
Copy link

ghost commented Mar 27, 2020

I figured it out, no need to use \ before spaces in the string element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment