Skip to content

Instantly share code, notes, and snippets.

@russelldavis
Created June 28, 2020 08:33
Show Gist options
  • Save russelldavis/a9fbe23ea1c34367ffca9e6a62a0c87d to your computer and use it in GitHub Desktop.
Save russelldavis/a9fbe23ea1c34367ffca9e6a62a0c87d to your computer and use it in GitHub Desktop.
<?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">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>591603148.251261</real>
<key>Macros</key>
<array>
<dict>
<key>Actions</key>
<array>
<dict>
<key>DisplayKind</key>
<string>Variable</string>
<key>HonourFailureSettings</key>
<true/>
<key>IncludeStdErr</key>
<false/>
<key>MacroActionType</key>
<string>ExecuteAppleScript</string>
<key>Path</key>
<string></string>
<key>Text</key>
<string>tell application "System Events"
get value of static text 1 of window 1 of process "NotificationCenter"
end tell
</string>
<key>TimeOutAbortsMacro</key>
<true/>
<key>TrimResults</key>
<true/>
<key>TrimResultsNew</key>
<true/>
<key>UseText</key>
<true/>
<key>Variable</key>
<string>Notification Title</string>
</dict>
<dict>
<key>Buttons</key>
<array>
<dict>
<key>Button</key>
<string>OK</string>
</dict>
<dict>
<key>Button</key>
<string>Cancel</string>
<key>Cancel</key>
<true/>
</dict>
</array>
<key>MacroActionType</key>
<string>PromptForUserInput</string>
<key>Prompt</key>
<string>"%Variable%Notification Title%"</string>
<key>TimeOutAbortsMacro</key>
<true/>
<key>Title</key>
<string>Snooze Reminder</string>
<key>Variables</key>
<array>
<dict>
<key>Default</key>
<string>15</string>
<key>Variable</key>
<string>Minutes To Wait</string>
</dict>
</array>
</dict>
<dict>
<key>Action</key>
<string>CaseSensitiveRegEx</string>
<key>MacroActionType</key>
<string>SearchReplace</string>
<key>Replace</key>
<string></string>
<key>Search</key>
<string> \[snoozed\]$</string>
<key>Source</key>
<string>Variable</string>
<key>Variable</key>
<string>Notification Title</string>
</dict>
<dict>
<key>DisplayKind</key>
<string>None</string>
<key>HonourFailureSettings</key>
<true/>
<key>IncludeStdErr</key>
<false/>
<key>MacroActionType</key>
<string>ExecuteAppleScript</string>
<key>Path</key>
<string></string>
<key>Text</key>
<string>set title to (system attribute "KMVAR_Notification_Title") &amp; " [snoozed]"
set minutes to system attribute "KMVAR_Minutes_To_Wait"
set dueDate to ((current date) + minutes * 60)
tell application "Reminders"
tell list "Reminders"
make new reminder with properties {remind me date:dueDate, name:title}
end tell
end tell
tell application "System Events"
click first button of window 1 of process "NotificationCenter"
end tell
</string>
<key>TimeOutAbortsMacro</key>
<true/>
<key>TrimResults</key>
<true/>
<key>TrimResultsNew</key>
<true/>
<key>UseText</key>
<true/>
</dict>
</array>
<key>CreationDate</key>
<real>614855498.42559803</real>
<key>ModificationDate</key>
<real>615023883.653018</real>
<key>Name</key>
<string>Snooze Reminder</string>
<key>Triggers</key>
<array>
<dict>
<key>FireType</key>
<string>Pressed</string>
<key>KeyCode</key>
<integer>23</integer>
<key>MacroTriggerType</key>
<string>HotKey</string>
<key>Modifiers</key>
<integer>2560</integer>
</dict>
</array>
<key>UID</key>
<string>F2874291-001A-41B9-979F-E808BC92174B</string>
</dict>
</array>
<key>Name</key>
<string>Global Macro Group</string>
<key>ToggleMacroUID</key>
<string>7CF5A95F-DBB5-4823-9FDB-C9315D5FABF6</string>
<key>UID</key>
<string>1BF92144-98EE-48A0-9ABD-D3612FD773FA</string>
</dict>
</array>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment