🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9628

Re: How to name PDF export using InD current file name?

#9628
From: Robert Tkaczyk
Date: Tue, 15 Aug 2006 16:41
13 lines
1146 bytes
from VB ObjectBrowser:

Property Name As String
     Default member of InDesign.PDFExportPreset
     The name of the PDFExportPreset

set myPDFExportPreset = myInDi.PDFExportPresets.Item(2)
myName=Left$(myInDi.ActiveDocument.Name,InStr(myInDi.ActiveDocument.Name,".")-1)
myPDFExportPreset.Name = myName

in JS you can use .split() method

robin
Technical Details
Message-ID: <E77E9F0B50B5CD3DDCAC117904077705@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc144b2.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1aed37f8dc66a37e
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Tkaczyk <indesignscripts@wp.pl>
Newsgroups: adobe.scripting.indesign
Subject: Re: How to name PDF export using InD current file name?
Message-ID: <E77E9F0B50B5CD3DDCAC117904077705@in.webcrossing.la2eafNXanI>
Date: Tue, 15 Aug 2006 09:41:22 -0700
References: <3bc144b2.-1@webcrossing.la2eafNXanI>
Lines: 14
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
X-Antivirus: avast! (VPS 0633-1, 2006-08-15), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing