Is there a way to get a hostName with Actionscript on something different from Photoshop/Illustrator/InDesign?
I mean, on Dreamweaver or Flash, for example? HostObject.mainExtension seems to be null on these platfroms.
Not all applications supported by ExtensionBuilder have HBAPI
supports, if you see HostObject is not available, most likely the host
app does not support that, we will work with the product team to add
that support in the future.
In the case of getting host name, you can use the CSXS API
getHostEnvironment() to retrieve it. See the CSExtBasics's
AppModel.computeHostName for sample code on how to do it.
Thank you, Lee! Now I see.
Where can I find the CSExtBasics?
From ExtensionBuilder, select File>Import, you will see an import dialog, then you select "Adobe Creative Suite Extension Builder>Remote Creative Suite SDK Examples. From there you can pick CSExtBasics from the list of SDK samples.