Hello! First time poster but a long-term Alfred user/fan here. I must say that I can't get the sleep command to work.
Steps to replicate:
1. Launch alfred
2. Select "Sleep"
3. Expected: machine sleeps
4. Actual: Alfred's UI disappears but nothing else happens
Alfred version: 4.6.3 [1285]
MacOS version: 12.2.1 (MacBook Air M1)
Troubleshooting steps attempted:
* disabling/enabling permissions (Accessibility and System Events)
* restarting the machine
* testing other system comments, e.g., Lock and Sleep displays work as expected
* creating a workflow with a sleep system command (no luck)
* checking system console for error entries and I consistently see 2 entries appearing
Launchd didn't have information for pid 2030, reason: Error Domain=NSPOSIXErrorDomain Code=113 "Unknown error: 113"
(the pid changes each time and when I try to find it in Activity Monitor, I can't find it) followed by
Error reading receipt: Error Domain=NSCocoaErrorDomain Code=256 "The file “receipt” couldn’t be opened." UserInfo={NSFilePath=/usr/bin/osascript/Contents/_MASReceipt/receipt, NSUnderlyingError=0x12e623420 {Error Domain=NSPOSIXErrorDomain Code=20 "Not a directory"}}
The last thing I want to add is that although I can't reproduce it, the first time I was troubleshooting permissions and checking the Activity Monitor I saw multiple instances of a process called sleep and for all those instances it was an Intel process running via Roseta2. Alfred is an Apple (arm) process.