🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10012

Dynamic 'go to page'

#10012
From: chadedge
Date: Wed, 12 Jul 2006 18:03
30 lines
2190 bytes
I've been reviewing these threads:
http://groups.google.com/group/adobe.scripting.indesign/browse_thread/thread/77ae2cbd442a53b/3b83685a31558032?q=%22go+to+page%22&rnum=1#3b83685a31558032

and

http://groups.google.com/group/adobe.scripting.indesign/browse_thread/thread/e8cb8a392894e64d/d470320b57e0b251?q=%22go+to+page%22&rnum=2#d470320b57e0b251

To help with a 'go to page' part of my JS. What I'm working on is the
following:
opening text files with graphic placement information. Once the
graphic(s) are placed, I need to jump to the page where the last
graphic was placed (actually, all graphics per file will be placed on a
single page - eg: 10 text files, 10 pages of placement).

I have the following working;

app.activeWindow.activeSpread = app.activeDocument.pages[0].parent;

0 being the first page, of course.

The problem I have: I need to set pages[foo] dynamically, such as with
pages[vars[5]].parent or pages[pageNumber].parent.

The problem: I can't get the pages[**VARIABLE**] to accept. I get an
error that the string is now undefined (I guess I can't pass a variable
inside the pages[] array).

Any thoughts?

Chad
Technical Details
Message-ID: <1152727406.221151.67400@m73g2000cwd.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e962ef986586b0b2,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail
From: "chadedge" <chadedge@gmail.com>
Newsgroups: adobe.scripting.indesign
Subject: Dynamic 'go to page'
Date: 12 Jul 2006 11:03:26 -0700
Organization: http://groups.google.com
Lines: 31
Message-ID: <1152727406.221151.67400@m73g2000cwd.googlegroups.com>
NNTP-Posting-Host: 192.251.219.11
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1152727412 9764 127.0.0.1 (12 Jul 2006 18:03:32 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 12 Jul 2006 18:03:32 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Opera/9.00 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: m73g2000cwd.googlegroups.com; posting-host=192.251.219.11;
   posting-account=dtLIOw0AAADTp7Kcfd83rXEJOwFY3oYP