Skip to content

Instantly share code, notes, and snippets.

@grefel
Last active March 19, 2016 12:55
Show Gist options
  • Save grefel/c108f81a6aef538b6a63 to your computer and use it in GitHub Desktop.
Save grefel/c108f81a6aef538b6a63 to your computer and use it in GitHub Desktop.
Get #InDesign version with one decimal place e.g. user folder navigation
function getVersion() {
var version = parseFloat(app.version).toFixed (1);
return (version % 1 == .5) ? version : Math.floor(version).toFixed(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment