hmmm, it doesn´t work...=(
Is there any other options? We are making a script that exports multiple indd-files to multiple SWF-files at once, and some of the files start from number 1, some might start with practicly any number... so we can´t use any hardcoded numbered pagerange....
There has to be a way to make script export all pages.... (I hope)
I have never had to face SWF files. I don't know how to check if a SWF-file contains one or more pages, and which program it can be opened with -- must be Flash, but I don't have it. PageRange.ALL_PAGES is what scripting documentation describes as a legal value of pageRange property.
I did a little test: first I exported 3 files, setting different page ranges directly from ID, and then I did the same by script, the sizes of corresponding files were exactly the same -- e.g. 20108 bytes for all three pages, 19963 for pages 1-2 and 19815 for only the 1st page -- so the script exports the same way as application.
P.S. Here is the script:
var myDoc = app.activeDocument;
app.swfExportPreferences.pageRange = PageRange.ALL_PAGES;
var myFile = new File("~/Desktop/ScriptTest.swf");
pageRange can be either PageRange enumeration or a string, e.g. "1", "1-3".
Wau, thanks... you´re the man!!!
Now it works. There was some strange thing, when I first tried that ALL_PAGES it didn´t work. But when I re-wrote the whole line, excactly same way as it was, it started to work...?!?!
Anyway, now I´m off the hook...=)