Article View: adobe.scripting.indesign
Article #172Re: getting an objectStyle that is in a format group
From: LarsThoren
Date: Tue, 31 Mar 2009 08:18
Date: Tue, 31 Mar 2009 08:18
13 lines
1042 bytes
1042 bytes
I found some help in the scripting reference and came up with this:
myDoc = app.activeDocument;
var myGroup_CategoryPage = myDoc.ObjectStyleGroups.itemByName("CategoryPage");
var myObjectStyle_CategoryTableCorner = myGroup_CategoryPage.ObjectStyles.itemByName("CategoryTableCorner");
However I get an error, code 55:
(translated to english):
The object doesn't support the property or method 'ObjectStyleGroups'
Technical Details
Message-ID:
<59b87562.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b87562.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f2230e7fd88cdcd7 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: LarsThoren@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: getting an objectStyle that is in a format group Message-ID: <59b87562.0@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 01:18:15 -0700 References: <59b87562.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit