-
|
It seems that "sleep" is no longer working? //Menu: Sleep
//Description: Put your display to sleep
let { sleep } = await kit("system")
await sleep()stacktrace: [2021-08-11 11:24:14.251] [info] osascript -e 'tell application "Finder" to sleep'
[2021-09-13 11:17:28.192] [warn] /Users/jp/.kit/scripts/system.js not found
[2021-09-13 11:17:28.196] [warn] Error: /Users/jp/.kit/scripts/system.js not found
at resolveToScriptPath (file:///Users/jp/.kit/core/util.js:83:19)
at global.run (file:///Users/jp/.kit/api/kit.js:181:26)
at kit (file:///Users/jp/.kit/api/kit.js:320:19)
at file:///Users/jp/.kenv/scripts/sleep.js?uuid=16026dea-d8dc-4564-8bc6-60793f26e76a:3:29
at ModuleJob.run (node:internal/modules/esm/module_job:154:23)
at async Loader.import (node:internal/modules/esm/loader:166:24)
at async global.attemptImport (file:///Users/jp/.kit/api/kit.js:51:16)
at async file:///Users/jp/.kenv/scripts/gym.js?uuid=66b5762b-fd01-4bfa-8096-8af0a8ff3843:5:1 |
Beta Was this translation helpful? Give feedback.
Answered by
jsjoeio
Sep 20, 2021
Replies: 1 comment
-
|
Looks like //Menu: Sleep
//Description: Put your display to sleep
await sleep()Source: #435 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jsjoeio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like
sleepis now global in the latest version. Change your script to this:Source: #435 (comment)