How to check if API can connect to FM?


hi in fmclient have following method checking if api alive: bool fmclient::isconnected() { return f_apialive() > 0; } after connect fm f_apistartup isconnected method returns true. however, if user closes fm application method still continue returns true. how can check if fm application alive , fmclient connected it? should run , test api call? e.g. try current active document or else?

ch,

 

there might not active document. maybe ask version (fp_versionmajor)? seems more reliable, although guess. have not been in situation before.

 

russ



More discussions in FrameMaker Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"