Article View: adobe.scripting.indesign
Article #15087Re: JS: Drop Shadow x/y offset problem
From: Jonathan_W_Brown
Date: Tue, 16 Dec 2003 19:43
Date: Tue, 16 Dec 2003 19:43
39 lines
1577 bytes
1577 bytes
Another approach to troubleshooting such a problem is to enumerate
the properties of an object (and their values) with something like
this:
if (app.documents.length > 0)
{
if (app.selection.length > 0)
{
//Something is selected.
var mySelection = app.selection[0];
var myprops = new Array();
for (var propName in mySelection )
{
try
{
myprops.push( " " + propName + " = "
+ mySelection[propName] ) ;
}
catch(ex)
{
myprops.push( " " + propName + " = " + ex ) ;
}
}
myprops.sort();
alert( myprops ) ;
}
else
{
//Nothing is selected, so display an error message.
alert("Nothing is selected. Please select an object
and try again.")
}
}
else
{
//No documents are open, so display an error message.
alert("No InDesign documents are open. Please open a document
and try again.")
}
Technical Details
Message-ID:
<p06020402bc050f859a1d@[153.32.226.61]>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccef3af.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,fda6f4796a1c75cb X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-16 12:08:33 PST From: Jonathan_W_Brown@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: JS: Drop Shadow x/y offset problem Message-ID: <p06020402bc050f859a1d@[153.32.226.61]> Date: Tue, 16 Dec 2003 11:43:32 -0800 References: <2ccef3af.-1@webx.la2eafNXanI> Lines: 39 X-Sender: jwbrown@mailsea.sea.adobe.com MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit