Article View: adobe.scripting.indesign
Article #19353Re: Help to convert VB Script to AppleScript
From: Shane Stanley
Date: Mon, 06 Jan 2003 21:40
Date: Mon, 06 Jan 2003 21:40
19 lines
1450 bytes
1450 bytes
This should do what you want:
tell application "InDesign 2.0.2"
tell document 1
repeat with i from 2 to count of paragraph styles
set theStyle to paragraph style i
with timeout of 300 seconds
apply style (every paragraph of every story whose applied paragraph
style is theStyle) using theStyle without clearing overrides
end timeout
end repeat
end tell
end tell
Note that it says "without clearing overrides" -- there seems to be a bug
that makes this work in reverse.
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<BA4042E4.49EB4%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newspump.sol.net!hammer.uoregon.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.esat.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de74010.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,5bdb0e6d7a11cf45 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-06 13:38:39 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newspump.sol.net!hammer.uoregon.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.esat.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Help to convert VB Script to AppleScript Message-ID: <BA4042E4.49EB4%sstanley@myriad-com.com.au> Date: Mon, 6 Jan 2003 13:40:04 -0800 References: <1de74010.-1@WebX.la2eafNXanI> Lines: 21 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit