vitorgalvao / alfred-workflows

Collection of Alfred workflows
BSD 3-Clause "New" or "Revised" License
2.44k stars 167 forks source link

CalmNotifications doesn't give the option to turn off the workflow #153

Closed Danica960 closed 2 years ago

Danica960 commented 2 years ago

Setup info

Description of issue

I type 'dnd' into Alfred but only given the option to turn on CalmNotifications. I type 'dnd' again and it doesn't give me the option to disable DND. In other words I can see the green bottle icon when I 'turn it on' but the option to 'turn it off' isn't ### working

Debugger output

[09:17:25.978] Logging Started...
[09:18:55.539] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Queuing argument ''
[09:18:55.871] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Script with argv '' finished
[09:18:55.874] STDERR: CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] 2022-06-22 09:18:55.800 defaults[11424:318518] 
The domain/default pair of (com.apple.controlcenter, NSStatusItem Visible FocusModes) does not exist
[09:18:55.875] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] {"items":[{"title":"Turn it on","subtitle":"Stop notifications from going through","arg":"on"}]}
[09:18:58.187] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Processing complete
[09:18:58.189] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Passing output 'on' to [Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E4C30FC65-71BF-4EFE-94CC-B038B4D991CA)
[09:18:58.190] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Passing output 'on' to [Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E5116FFE2-57F2-4B38-88EA-24FC77101347)
[09:18:58.297] ERROR: CalmNotifications[[Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E4C30FC65-71BF-4EFE-94CC-B038B4D991CA)] /Users/pro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/DEEB6B63-1DA9-4080-B504-E1B67CC54EC9: line 1: /usr/bin/shortcuts: No such file or directory
No application knows how to open URL file:///Users/Local%20-%20Documents/App%20Preferences%20&%20Exports/Alfred%20-%20Preferences/Alfred.alfredpreferences/workflows/user.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3/Calm%20Notifications.shortcut (Error Domain=NSOSStatusErrorDomain Code=-10814 "kLSApplicationNotFoundErr: E.g. no application claims the file" UserInfo={_LSLine=1479, _LSFunction=runEvaluator}).
Missing Calm Notifications Shortcut
[09:18:59.842] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Queuing argument ''
[09:19:00.118] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Script with argv '' finished
[09:19:00.124] STDERR: CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] 2022-06-22 09:19:00.046 defaults[11435:318570] 
The domain/default pair of (com.apple.controlcenter, NSStatusItem Visible FocusModes) does not exist
[09:19:00.125] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] {"items":[{"title":"Turn it on","subtitle":"Stop notifications from going through","arg":"on"}]}
[09:19:01.131] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Processing complete
[09:19:01.133] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Passing output 'on' to [Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E4C30FC65-71BF-4EFE-94CC-B038B4D991CA)
[09:19:01.135] CalmNotifications[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E3E435725-836B-4634-BF9F-B8DBADDDEABF)] Passing output 'on' to [Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E5116FFE2-57F2-4B38-88EA-24FC77101347)
[09:19:01.241] ERROR: CalmNotifications[[Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3%3E4C30FC65-71BF-4EFE-94CC-B038B4D991CA)] /Users/pro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/DEEB6B63-1DA9-4080-B504-E1B67CC54EC9: line 1: /usr/bin/shortcuts: No such file or directory
No application knows how to open URL file:///Users/Local%20-%20Documents/App%20Preferences%20&%20Exports/Alfred%20-%20Preferences/Alfred.alfredpreferences/workflows/user.workflow.2F3AEAD9-C5F1-4223-9FF1-EA7E2A1C6BC3/Calm%20Notifications.shortcut (Error Domain=NSOSStatusErrorDomain Code=-10814 "kLSApplicationNotFoundErr: E.g. no application claims the file" UserInfo={_LSLine=1479, _LSFunction=runEvaluator}).
Missing Calm Notifications Shortcut
vitorgalvao commented 2 years ago

Recent versions work on Monterey and above. For Big Sur, you'll need an older version.