Skip to main content
Inspiring
December 14, 2011
Answered

Determine host application capabilities from an Automation plugin

  • December 14, 2011
  • 1 reply
  • 803 views

Sorry, I tried like crazy to search for an answer to this in the SDK docs and in this forum.

I have an automation plugin that works in both Elements 7ish-10 and full Photoshop CS3/4/5.  However, I want to determine in the host application is 'smart object capable' in order to do some things conditionally in my code.

Preferably, I'm wondering if there's some boolean property I can access through some PICA (or other) callbacks to determine if the host can handle smart objects. 

My current fallback is the 'keyHostName' property but I'd like to avoid having to maintain/rely on string comparisons to determine if the host is smart object capable.

This topic has been closed for replies.
Correct answer twright151

Found an example to at least determine if the host program is elements or not in the sdk sample code under: $SDKROOT/samplecode/automation/getter/common/Getter.cpp:185

Gonna have to factor out those goto's though.

1 reply

Inspiring
December 15, 2011

Well my fallback fell through... elements doesn't seem to have the key 'keyHostName' but I'm not sure if that fact is a safe indicator to use to distinguish between the two?

twright151AuthorCorrect answer
Inspiring
December 19, 2011

Found an example to at least determine if the host program is elements or not in the sdk sample code under: $SDKROOT/samplecode/automation/getter/common/Getter.cpp:185

Gonna have to factor out those goto's though.