Article View: adobe.scripting.indesign
Article #187Re: How to apply a style then a script
From: Dave_Saunders
Date: Tue, 31 Mar 2009 15:26
Date: Tue, 31 Mar 2009 15:26
11 lines
943 bytes
943 bytes
Miguel, You can certainly run a script with a paragraph selected and have that script apply a paragraph style. And, you could assign a keyboard shortcut to said script. For example: app.selection[0].appliedParagraphStyle = "MyStyle"; although it probably would be wise to check that the selection is of a suitable nature. Dave
Technical Details
Message-ID:
<59b87635.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b87635.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,26b74198d86a036e X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@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 apply a style then a script Message-ID: <59b87635.0@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 08:26:57 -0700 References: <59b87635.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit