🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9282

Re: (JS)(CS2) Taking Part of a String Variable

#9282
From: Martin Fischer*
Date: Thu, 24 Aug 2006 18:50
7 lines
740 bytes
Hi Scott,

you can do this with the command "substring()":

var myName = app.documents[0].name.substring(0,7)

Martin
Technical Details
Message-ID: <3bc1629e.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1629e.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f6476008d29c4871
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Martin Fischer*" <martin.fischer@online.de>
Newsgroups: adobe.scripting.indesign
Subject: Re: (JS)(CS2) Taking Part of a String Variable
Message-ID: <3bc1629e.1@webcrossing.la2eafNXanI>
Date: Thu, 24 Aug 2006 11:50:21 -0700
References: <3bc1629e.-1@webcrossing.la2eafNXanI>
Lines: 7
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing