I’d think a single quote would work fine though i can see the possibility of it not working
You can escape characters with a backslash e.g. Otonan\’s AirPods.
The script’s condition is also an “if contains”, so that’s why only typing in the name partially should work.
Regarding the new UI setup:
A dropdown is not native to applescript dialog boxes so creating one is waay out of my league, and also I’m not sure how that would work while not connected.. I’d need airpods myself to code for that too, right now I don’t have any W1 accessories so It would be hard to code for it.
Also thanks for bringing up the case of illegal characters! I’d need to implelent some sort of rejection or auto-escape into the UI setup now I guess.
My preset had a beats widget from @GoldenChaos, I never saw the code for it but maybe it could be similar and all it takes to work is just changing the reference name..
Edit: ah on second read I see your bug, its displaying what it’s not meant to right? I’m not sure how I can find the issue out since I don’t have these ‘phones, but maybe take a look again at my or GoldenChaoses beats and airpods widgets and see how they differentiate themselves