🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8459

Re: How to check string contents and screen refresh: 2 questions (VBScript)

#8459
From: Dave_Saunders
Date: Tue, 03 Oct 2006 15:20
14 lines
1531 bytes
I can't answer your first question because it is VB specific. In JS, you can use RegExp for that kind of thing, but that doesn't help you.

The second question I can answer. I use this function:

function selectIt(theObj) {
	// Selects object, turns to page and zooms in on it
	app.select(theObj,SelectionOptions.replaceWith);
	app.activeWindow.zoom(ZoomOptions.fitPage);
	app.activeWindow.zoomPercentage = 200
}

You'll need to transcribe it into VB, but that should be easy. The last line is optional, of course, or you can grab the current percentage before making the selection and then reassert it. You need to do the double fit to make sure the object is actually on screen before zooming in on it.

Dave
Technical Details
Message-ID: <3bc1d0f8.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.code-werk.net!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
References: <DBB8AF7F817937C04F88CCE86B0C4CE9@in.webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,59668cea2252b3d2
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.code-werk.net!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: How to check string contents and screen
 refresh: 2 questions (VBScript)
Message-ID: <3bc1d0f8.1@webcrossing.la2eafNXanI>
Date: Tue, 3 Oct 2006 08:20:07 -0700
References: <DBB8AF7F817937C04F88CCE86B0C4CE9@in.webcrossing.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit