i2cssh: i2cssh fails on Mojave

Any ideas?

Might not be related to just Mojave, but I have no clue as I’ve never used i2cssh before.

/Library/Ruby/Gems/2.3.0/gems/rb-scpt-1.0.3/lib/rb-scpt.rb:542:in` `_send_command': CommandError (Appscript::CommandError)
		OSERROR: -1743
		COMMAND: app("/Users/user/Applications/iTerm.app").create_window_with_profile("Default", {:command=>"/usr/bin/env bash -l"})
	from /Library/Ruby/Gems/2.3.0/gems/rb-scpt-1.0.3/lib/rb-scpt.rb:642:in `method_missing'
	from /Library/Ruby/Gems/2.3.0/gems/i2cssh-2.2.0/lib/i2cssh.rb:21:in `initialize'
	from /Library/Ruby/Gems/2.3.0/gems/i2cssh-2.2.0/bin/i2cssh:298:in `new'
	from /Library/Ruby/Gems/2.3.0/gems/i2cssh-2.2.0/bin/i2cssh:298:in `<top (required)>'
	from /usr/local/bin/i2cssh:22:in `load'
	from /usr/local/bin/i2cssh:22:in `<main>
'```

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19

Most upvoted comments

This worked for me

  1. Open the iterm2’s plist file is Xcode
  2. add row (from right click context menu)
  3. in ‘key’ column select ‘Privacy - AppleEvents Sending Usage Description’ from the drop down menu (you need to scroll down)
  4. add ‘This script needs to control other applications to run.’ in the value column.
  5. restart iterm2 app. It also reqiure brocast command manually.

Update: Upgrade to the latest version of iterm2,it fixed the problem.