mikelxc / sidecar-alfredworkflow

An Alfred Workflow that toggles sidecar function
25 stars 4 forks source link

Problems with the apple script in the workflow #1

Closed ChangXord closed 3 years ago

ChangXord commented 4 years ago

I am using Chinese for my system, which causes the apple script to throw an error message saying that there are no available iPads. Also, the AirPlay icon must be displayed in the menu bar, which is another problem. Can u help fix these problems? Many thanks!

jaredmichaelwilliams commented 4 years ago

@ChangXord Open the alfred workflow settings, go to the "Sidecar" workflow. Double click the one that says "/usr/bin/osascript" on top

Change this line click (menu item 1 of menu 1 of result whose title contains "iPad") to this line click (menu item 1 of menu 1 of result whose Title contains "iPad")

I also opened a PR so its fixed going forward

https://github.com/mikelxc/sidecar-alfredworkflow/pull/3

ChangXord commented 3 years ago

thx!