AdRoll / AirControl

Control AirPlay Mirroring from the command line.
MIT License
94 stars 13 forks source link

79:154 execution error #1

Closed GiovanniGrieco closed 8 years ago

GiovanniGrieco commented 9 years ago

Hi. I've tried to run aircontrol following your Readme file but Terminal.app returns me this error:

79:154: execution error: System Events got an error: Can’t get menu bar item 1 of menu bar 1 of process "SystemUIServer" whose description contains "Displays". Invalid index. (-1719)

I'm using OS X Yosemite. Thanks for your support and keep up the good work!

Timothee commented 8 years ago

@corsaroquad sorry I missed your now year-old message! In case you're still interested, I'd first check if you have a "Displays" menu. It looks like this in your system bar:

screen shot 2015-11-16 at 12 15 10 pm

If you don't have it, I'd check this option in the System Preferences/Displays:

system_preferences_-_displays

The error above comes from the AppleScript we're using and indicates that it can't find the menu. Another possibility would be that your OS' language is not English. Then you'd want to check for the translation used and modify the script in the right place.

Hope that helps! (better late than never :smile: )