Fred Goldman wrote:
I am often getting an error when I try to use the AdjustLayout script I decided to investigate and it turns it the problem is with these lines 117-120:
var myStartPage = app.activeDocument.pages.item(myStartPageName);
var myEndPage = app.activeDocument.pages.item(myEndPageName);
//Set page numbering to absolute
app.generalPreferences.pageNumbering = PageNumberingOptions.absolute;
Apparently, when setting to absolute numbeing it makes the variables that previously pointed to valid pages invalid. Does anyone know of any workarounds to this?
You need to read and store documentOffset value for both pages - then you can use it later to get reference to the same physical page.
Thanks you. Someone should tell Ole so that he can fix it for CS5..
1 person found this helpful
This is a common problem which pops up in various cases. You can use
getElements() to resolve the object to the id based one...