Close to the start of 2005 I completed a massive Applescript project in CS. After the project's release I did little in it except maintenance, the occasional debug session and not much else. However, its getting hard to find computers that will run CS and the current computers are beginning to show their age. So I have been asked to look into how much trouble it may be to convert CS Applescript to CS5 Applescript. Does anyone have any thoughts on the matter.
(Full disclosure: I have also posted this question to the Mac Scripts list and the Script Debugger list. I have received no response from the latter even though I posted it early this morning.)
The conversion could be as simple as pointing the tell statement towards CS5.
To some degree it is also possible to run older scripts with newer versions almost unchanged - newer versions of InDesign have a backward compatibility mode to emulate the API of older versions. I have no experience how far that works.
As you're using AppleScript, watch out for statements like
publish terminology version 4.0
set version of script preferences to 4.0
using terms from application ...
This is explained in old versions of the scripting guide, e.g. I copied the snippets straight from
On the other hand, plenty features have been added since CS. For example if you make the assumption that styles are direct children of the document you might miss those in groups. It all depends on your original script.
From CS to CS6, some potential useful functionality even has been removed from InDesign.
Exporting your document as SVG, to name one that I'm starting to miss, what with the recent push towrads e-publishing ...