Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osascript error when opening new terminal windows. #1449

Closed
shot-codes opened this issue Sep 23, 2022 · 7 comments
Closed

osascript error when opening new terminal windows. #1449

shot-codes opened this issue Sep 23, 2022 · 7 comments

Comments

@shot-codes
Copy link

When opening a terminal window the following is displayed. The scripting addition is working just fine.

osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/yabai.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
@terrenana
Copy link

I have the same error.

@RakerZh
Copy link

RakerZh commented Sep 24, 2022

same issue

@koekeishiya
Copy link
Owner

I don't have this issue, so going to need some more information? Yabai is not using AppleScript for anything, so not sure why "osascript" would output an error.

@bangedorrunt
Copy link

bangedorrunt commented Sep 25, 2022

@koekeishiya got the same issue, when I'm using neovim, switching between insert and normal mode
I'm on

  • macOS 12.6
  • Yabai 5.0 with SIP disabled

Screen Shot 2022-09-25 at 10 41 49 am

I noticed that I do have an applescript to switch language input method

  (autocmd InsertEnter [*.md *.markdown *.norg]
           `(os.execute "osascript -e 'tell application \"System Events\" to keystroke \"z\" using option down'"))
  (autocmd InsertLeave [*.md *.markdown *.norg]
           `(os.execute "osascript -e 'tell application \"System Events\" to keystroke \"z\" using option down'"))

Update 2: could confirm that if I disable the script, the problem is gone.

I can conclude that Yabai somehow conflict with Applescript.

@bangedorrunt
Copy link

Unfortunately, the error still occurred and make neovim unusable because of screen artifacts
Screen Shot 2022-09-25 at 11 23 39 am

@koekeishiya
Copy link
Owner

It is fixed on master. You need to run sudo yabai --uninstall-sa.

@bangedorrunt
Copy link

I upgraded but forgot to run the command you said above. Could confirm that fixed the issue!

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants