🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8901

[AS] how to create tint swatches?

#8901
From: Gerald_Singelmann
Date: Fri, 22 Sep 2006 15:03
43 lines
1352 bytes
I am stumped again.

usually I use this little routine to make sure a colour I want to use does exist:



 
try 
   tell myDoc to set mytrapswatch to color "trap" 
on error 
  tell myDoc to set mytrapswatch to make color 
  tell mytrapswatch 
      set name to "trap" 
      set space to RGB 
      set color value to {0, 255, 0} 
   end tell 
end try 




Now I need to do this with a tint of a swatch and find that "base color" is read only.

I would have expected the following to work:

 
try 
   tell myDoc to set mytrapswatch to color "trap" 
on error 
  tell myDoc to set mytrapswatch to make tint 
  tell mytrapswatch 
      set base color to color "Red" of myDoc 
      set tint value to 10 
   end tell 
end try 




How do I tackle this?

Thank you a lot
Gerald
Technical Details
Message-ID: <3bc1bd21.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6af1854fff320cef,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Gerald_Singelmann@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [AS] how to create tint swatches?
Message-ID: <3bc1bd21.-1@webcrossing.la2eafNXanI>
Date: Fri, 22 Sep 2006 08:03:29 -0700
Lines: 38
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit