Turns out that there’s -[NSWorkspace openURLs:withApplicationAtURL: …] but it’s not documented. Always check the headers.
@mjtsai That option isn't available in NSWorkspace. Would LSOpenFromURLSpec (using LSLaunchURLSpec.passThruParams) work for you?
-
-
@grynspan Possibly, but I don’t see how to convert my AEKeyDesc to an AEDesc *. What exactly is the format of passThruParams? -
@mjtsai It's set as the equivalent of inAEParam->descContent, with descKey == keyAEPropData. -
@grynspan If the key is always keyAEPropData, I don’t think that will work for me. I need to specify keyAESearchText. -
@mjtsai Are you passing this data to another process you don't control? -
@grynspan Yes. Preview, for example.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Michael Tsai
Jonathan Grynspan