Neil Weinberg wrote:
Is there any easy way to do this?
At a glance,
for (i=0; i<p.length; i+=2)
ought to work.
[Edit] Gah! There is color, bold, and underlining to mark my change -- but this **** *** forum software does not show it!
The minor change is 'i++' to 'i+=2'. Given some time, I can explain why.)
Thanks for your help. Would that work, even though the word documents are numbered sequentially (i.e., not odd numbers only)?
In other words page2.doc needs to be imported on page 3 in the INDD file, page3.doc on page 5, page4.doc on page 7, etc.
I think I would need separate counters--one for the word doc numbers and another god the INDD page where it is imported.
Envoyé de mon iPhone
> I think I would need separate counters--one for the word doc numbers and another god the INDD page where it is imported.
Oui mon frère, I was overseeing the "page number" thingy was re-used in John's script to select a numbered Word file.
Quick-and-ever-so-slightly-dirty: re-use the loop (page) counter but divide it by two! (.. and add 1 because loops run from zero upwards).
Fortunately, you don't have odd numbers in your loop *here* but hey, you might want to repurpose this script for odd numbered pages!
Just wanted to report back that this worked like a charm. (I even tried it for the odd-number pages, just like you said. ) Thank you again!
If I would not be pushing my luck, I have a follow-up question (sort of a variation on a theme): In addition to the text frames, there are three graphic frames on the left-side page of the spread. How would I modify the script if I wanted to import EPS files into the first graphic frame (i.e., page1.eps, page2.eps, page3.eps...)? In case it is helpful I labeled the first frame as "FrameA" in the Script Label panel.