🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #868

Re: how to set the fillcolor in findTextPreference in cs3 using js?

#868
From: buhari_masthan
Date: Fri, 27 Feb 2009 12:23
14 lines
1044 bytes
Hi Dave & Martin,

I also faced the same problem as Subha.
I hope there is an error in following code, though "Red" color in swatches.

app.changeTextPreferences.fillColor=app.activeDocument.swatches.item("Red");

When we run the above script, the following error occured:
"Request failed because object is from a different document or workspace"

Kindly give me a solution ASAP.

Regards,
Masthan
Technical Details
Message-ID: <59b6ab99.7@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b6ab99.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,201a313e0c494a79
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: buhari_masthan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: how to set the fillcolor in
 findTextPreference in cs3 using js?
Message-ID: <59b6ab99.7@webcrossing.la2eafNXanI>
Date: Fri, 27 Feb 2009 04:23:45 -0800
References: <59b6ab99.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit