I've got a simple script setup that I use via Raycast to open Core Shell windows. It uses the basis URL scheme talked about here, like so:
coreshell:profile?name=FancyProfile
Very often when I run the script it opens the profile as desired but also opens the main Profiles window (the same one you'd get if you selected New Window with Profiles from the menu). This opens second so it ends up overlaying the actual shell window. I haven't been able to figure out what causes this, it seems totally random.
Any way to prevent this from happening? Am I missing something obvious?