extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Hammerspoon]...

Open rolldav opened this issue 1 year ago • 4 comments

Extension

https://raycast.com/bjrmatos/hammerspoon

Raycast Version

1.103.2

macOS Version

No response

Description

Error:

Error: Command failed with exit code 1: osascript
514:520: execution error: Hammerspoon's AppleScript support is currently disabled. Please enable it in Hammerspoon by using the hs.allowAppleScript(true) command. (-50)
    at Q9 (/Users/drg/.config/raycast/extensions/32530086-5c58-4f76-a550-cb60c735bf14/restart.js:31:5638)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Z6 (/Users/drg/.config/raycast/extensions/32530086-5c58-4f76-a550-cb60c735bf14/restart.js:31:7691)

Steps To Reproduce

EACH TIME I TRY

Current Behaviour

No response

Expected Behaviour

No response

rolldav avatar Oct 06 '25 22:10 rolldav

Thank you for opening this issue!

🔔 @bjrmatos @that70schris you might want to have a look.

💡 Author and Contributors commands

The author and contributors of bjrmatos/hammerspoon can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot close as duplicate Closes the issue as duplicate.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Oct 06 '25 22:10 raycastbot

hi @rolldav

it looks like you have not followed the instructions of the extension:

  • With Hammerspoon installed, open your configuration file. By default Hammerspoon configuration file is located at ~/.hammerspoon/init.lua. If you don't have this file, you can create it by running touch ~/.hammerspoon/init.lua in your terminal.
  • Add this line at the top of your configuration file: hs.allowAppleScript(true), save the file and reload Hammerspoon.

as explained above, your hammerspoon configuration file should contain this line: hs.allowAppleScript(true), and you should ensure you have restart/reload hammerspoon.

bjrmatos avatar Oct 07 '25 00:10 bjrmatos

My bad ,You re totally right . Sorry . And thank you for your help .

rolldav avatar Oct 07 '25 11:10 rolldav

@raycastbot close this issue

bjrmatos avatar Oct 07 '25 19:10 bjrmatos