Skip to content

Instantly share code, notes, and snippets.

@pdfux
Last active October 6, 2026 18:48
Show Gist options
  • Select an option

  • Save pdfux/91941e8ccac33b86e38f06bf396e855a to your computer and use it in GitHub Desktop.

Select an option

Save pdfux/91941e8ccac33b86e38f06bf396e855a to your computer and use it in GitHub Desktop.
Enable sub-minute polling for Safari’s Notify Me

Enable sub-minute polling for Safari’s Notify Me

If you've been using Safari's new Notify Me website monitoring feature in macOS 27, you may have been underwhelmed by the range of polling options available. The shortest waiting period between checks is 1 hour.

Luckily, you can edit the Notify Me automation database to enable polling every minute or few seconds. The trick here is that Safari only checks the requested polling interval when you set up the automation. It does not check how long ago the last website check was performed. Read below for the steps you need to follow.

Safari’s Notify Me setup dialog over a Rit dye project page. The monitoring prompt reads “New item,” with checks scheduled daily at 11:45 AM and an Edit link to change the schedule. Cancel and Next buttons appear below.
 Tested in: macOS 27.0 (26A428)
  macOS 27.2 Developer Beta 1 (26B5086k)
  macOS 27.2 Developer Beta 2 (26B5091g)

Steps to enable sub-minute polling

Step 1

Have or create a new Notify Me automation. The frequency can be set to any of the available options.

Step 2

Make a backup of the database we'll change. You can save your backup anywhere, here's an example:

shortcuts_db="$HOME/Library/Shortcuts/ExternalTriggers/ExternalTriggers.sqlite"
backup_dir="$HOME/Desktop/NotifyMeWhen-backup"

mkdir -p "$backup_dir"

sqlite3 "$shortcuts_db" \
  ".backup '$backup_dir/ExternalTriggers.sqlite'"

echo "$backup_dir"

Keep using the same Terminal window so the variables remain available.

Step 3

List your Notify Me automations:

sqlite3 -init /dev/null -header -column "$HOME/Library/Safari/NotifyMeWhen.db" "
SELECT shortcuts_uuid, shortcut_name, url
FROM automation_info;
"

You'll see something like this:

           shortcuts_uuid                   shortcut_name                       url
------------------------------------  --------------------------  -------------------------------
00000000-0000-0000-0000-000000000000  Apple Newsroom New Article  https://www.apple.com/newsroom/

Step 4

Copy the UUID for the automation we're going to edit:

automation_uuid='PASTE_UUID_HERE'

Step 5

Find the matching Shortcuts trigger:

trigger_uuid=$(sqlite3 -init /dev/null -batch -noheader -list -readonly "$shortcuts_db" "
SELECT u.ZUUID
FROM ZUNIFIEDTRIGGER u
JOIN ZSHORTCUT s ON s.Z_PK=u.ZSHORTCUT
WHERE s.ZWORKFLOWID='$automation_uuid' AND s.ZTOMBSTONED=0;
" 2>/dev/null)

echo "$trigger_uuid"

You should see exactly one UUID:

11111111-1111-1111-1111-111111111111

Step 6

Extract the trigger configuration:

rm -f "$backup_dir/trigger.plist"

sqlite3 -init /dev/null -batch -readonly "$shortcuts_db" "
SELECT writefile('$backup_dir/trigger.plist', ZDATA)
FROM ZUNIFIEDTRIGGER
WHERE ZUUID='$trigger_uuid';
" >/dev/null 2>&1

plutil -lint "$backup_dir/trigger.plist"

Prints:

.../trigger.plist: OK

Step 7

Change the trigger to poll to your desired interval. Here’s how it works:

  • The trigger accepts frequency, interval, and seconds parameters.
  • frequency 1 sets the granularity to minutes.
  • interval N sets the automation to run every N minutes.
  • The seconds array chooses when within each minute to check. Using 0 and 30 checks at :00 and :30.

Here’s the full command to change the trigger in your backup location to 30 second intervals:

/usr/libexec/PlistBuddy \
  -c 'Set :WFTriggerSerializedParameters:WFRecurrence:frequency 1' \
  -c 'Set :WFTriggerSerializedParameters:WFRecurrence:interval 1' \
  -c 'Delete :WFTriggerSerializedParameters:WFRecurrence:seconds' \
  -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds array' \
  -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds:0 integer 0' \
  -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds:1 integer 30' \
  "$backup_dir/trigger.plist"

Here are some other example values:

Check every interval Values in seconds
15 seconds 1 0, 15, 30, 45
30 seconds 1 0, 30
1 minute 1 —
5 minutes 5 —

Keep frequency 1 for all these examples.

  • For one-minute or five-minute triggers, you don’t need to run any of the seconds lines:

    /usr/libexec/PlistBuddy \
      -c 'Set :WFTriggerSerializedParameters:WFRecurrence:frequency 1' \
      -c 'Set :WFTriggerSerializedParameters:WFRecurrence:interval 5' \
      "$backup_dir/trigger.plist"
  • For 15-second triggers, you’ll need two more items in the seconds array (seconds:N is the zero-based array index of the item):

    /usr/libexec/PlistBuddy \
      -c 'Set :WFTriggerSerializedParameters:WFRecurrence:frequency 1' \
      -c 'Set :WFTriggerSerializedParameters:WFRecurrence:interval 1' \
      -c 'Delete :WFTriggerSerializedParameters:WFRecurrence:seconds' \
      -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds array' \
      -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds:0 integer 0' \
      -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds:1 integer 15' \
      -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds:2 integer 30' \
      -c 'Add :WFTriggerSerializedParameters:WFRecurrence:seconds:3 integer 45' \
      "$backup_dir/trigger.plist"

Note

Shortcuts will reuse the trigger anchor you had set before. For example, if your current automation is set to check every hour at :58 and you choose a 10-minute interval, you will get website checks at :08, :18, ..., :58. You can change the trigger anchor:

anchor_input='2026-08-07 21:41'

anchor=$(date -j -f '%Y-%m-%d %H:%M' \
  "$anchor_input" \
  '+%a %b %d %H:%M:00 %Z %Y')

echo "$anchor"

Now change the trigger and polling rate as before. Note the additional WFTime line:

/usr/libexec/PlistBuddy \
  -c 'Set :WFTriggerSerializedParameters:WFRecurrence:frequency 1' \
  -c 'Set :WFTriggerSerializedParameters:WFRecurrence:interval 5' \
  -c "Set :WFTriggerSerializedParameters:WFTime $anchor" \
  "$backup_dir/trigger.plist"

Step 8

Write it back to Shortcuts:

sqlite3 "$shortcuts_db" "
UPDATE ZUNIFIEDTRIGGER
SET ZDATA=readfile('$backup_dir/trigger.plist'),
    Z_OPT=Z_OPT+1
WHERE ZUUID='$trigger_uuid';
"

Step 9

Restart siriactionsd:

launchctl kickstart -k "gui/$(id -u)/com.apple.siriactionsd"

Done! Under Settings > Websites > Notify Me, you'll still see the previous polling rate.

Note

Safari's Next Check label when you visit the website still uses the frequency previously set in Safari. Checks and analysis can take longer than the polling interval, especially if you use intervals of a few seconds. If you edit the automation in Safari, it will overwrite the custom interval, but you can easily reapply it.

You can check how often safari polls your site:

/usr/bin/log show --last 2h \
  --style compact --info --predicate \
  "process == 'Safari' AND category == 'NotifyMeWhen' \
  AND eventMessage BEGINSWITH 'RequestWebPageContextIntent'"

Or grab only your watcher's calls if you still have the automation_uuid in context:

/usr/bin/log show --last 2h \
  --style compact --info --predicate \
  "process == 'Safari' AND category == 'NotifyMeWhen' \
  AND eventMessage BEGINSWITH 'RequestWebPageContextIntent for '\
  AND eventMessage CONTAINS '$automation_uuid'"

Reset in Safari

Simply edit the automation under Settings > Websites > Notify Me. Simply clicking Save will overwrite the custom interval.

Reset from your backup

If something goes wrong, you can reset from your backup.

Step 1

Enter the backup location:

backup_dir="$HOME/Desktop/NotifyMeWhen-backup"

shortcuts_db="$HOME/Library/Shortcuts/ExternalTriggers/ExternalTriggers.sqlite"

Step 2

Restore the Shortcuts database:

sqlite3 "$shortcuts_db" \
  ".restore $backup_dir/ExternalTriggers.sqlite"

Step 3

Restart siriactionsd:

launchctl kickstart -k "gui/$(id -u)/com.apple.siriactionsd"

Done!

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