🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16008

applescripting transparent fill and stroke

#16008
From: Julien_Beauviala
Date: Mon, 20 Oct 2003 07:20
37 lines
1973 bytes
I'm working on a script that imports eps files into an indesign document and then export that document as PDF file. So far so good (considering I'm really low on the applescript tree) except one thing :

If indesign upon opening has it's fill and stroke different from transparent (or none), the rectangles created by the script pick up that fill and stroke. Not really what I want.

But I cannot find anywhere the command to set fill and stroke to 'none', prior to creating the rectangles.

So right now I need to make sure by hand that fill and stroke are none prior to launching the script. There is got to be a better way.

The code looks somewhat like this :



 
tell application "InDesign 2.0.2" 
   set myDocument to make document 
   set myPageWidth to 900 
   set myPageHeight to 330 
   tell document preferences of myDocument 
      set page width to myPageWidth 
      set page height to myPageHeight 
      -- set fill color to none (does not work) ??? 
      -- set stroke color to none (does not work) ??? 
   end tell 
   tell page 1 of myDocument 
         -- importing / placing stuff is done here 
   end tell 
   tell myDocument 
      export format PDF type to mypdf using PDF export style "eBook" without showing options 
      close saving no 
   end tell 
end tell  




any ideas how to achieve that ?
thanks
Technical Details
Message-ID: <2ccde957.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,cf025bf250781498,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-20 00:37:38 PST
From: Julien_Beauviala@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: applescripting transparent fill and stroke
Message-ID: <2ccde957.-1@webx.la2eafNXanI>
Date: Mon, 20 Oct 2003 00:20:40 -0700
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit