Scripting: duplicate pages
Hey everyone, I'm both new to this forum and new to Javascript, please have as much patience as you can muster!
I'm in the process of writing a script for InDesign, and I've hit a few walls; one is that my code for duplicating a page isn't executing at all.
My script is set up as follows:
1. Prompt user to select a CSV file
2. Parses the CSV data and writes what I need to a couple of arrays and variables
3. Opens a dialog window asking for some user input
4. When you click one of the buttons, an onClick function is called
The onClick function does run, but the code I have within it to duplicate pages doesn't do anything. If I have that same code in its own script (not within the onClick function), it runs as expected and duplicates pages... but within the function, it won't run.
Any thoughts or advice would go a long way, I'm sure! Thank you for your time!
- Michael
