When I call
const app = Application("Orion")
app.windows()
This works; when I do the same using the app identifier for Orion profiles like:
const app = Application("com.kagi.kagimacOS.whatever")
app.windows()
Then I get an error that app.windows() isn't a function.
Video:
https://www.loom.com/share/dc7aa9de317f473f991ba69d25ec2781
AppleScript could query windows for orion profiles the same as they do for the main executable (or windows() returns something usable for each of the profiles)
Version 0.99.131.3-rc (WebKit 621.1.2.111.4)
Sequoia (15)