🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15466

Re: setting PDF Export Preferences using Applescript

#15466
From: Shane_Stanley
Date: Wed, 03 Dec 2003 21:27
14 lines
1173 bytes
I suspect you're getting the error on the "disallow printing" line, 
because you can't disallow printing without first setting "use 
security" to true. Try this:

tell application "InDesign 2.0.2"
	set page range of PDF export preferences to "1-6"
	set use security of PDF export preferences to true
	set disallow printing of PDF export preferences to true
end tell

And you really ought to upgrade to 2.0.2...

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <8828A967-25D7-11D8-9DE9-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2cceb77b.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8ec5f12ee7c371d6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-03 13:38:12 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: setting PDF Export Preferences using Applescript
Message-ID: <8828A967-25D7-11D8-9DE9-003065D61B90@myriad-com.com.au>
Date: Wed, 3 Dec 2003 13:27:43 -0800
References: <2cceb77b.-1@webx.la2eafNXanI>
Lines: 15
X-Mailer: Apple Mail (2.606)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit