how can we get whether the active document is cs4 or cs5.5. I need to remove pasteboard items. But i have 2 different codes for indesign cs4 and cs5.5.
@Sangeetha M – there is an version property for the app object. That will return a string object.
For CS4 you'll get a string back.
Something like this:
Could also be slightly different. Depending on the patch version of the specific InDesign installation.
And there is a method for strings to change that into a number.
var myVersionNumber = parseFloat(app.version);
That will return the number:
In the case of InDesign CS5.5 the string will be something like this:
With using parseFloat the number returned will be:
Thank you so much Laubender.