Article View: adobe.scripting.indesign
Article #8862Re: find & replace fonts
From: Y._F._T
Date: Thu, 21 Sep 2006 21:25
Date: Thu, 21 Sep 2006 21:25
16 lines
1441 bytes
1441 bytes
Hello
As a very (french) beginner in Applescript, I'm trying to convert quickly some XPress files into Indesign CS2. For that, I'd like to replace the XPress paragraph and character styles by those I've created in Indesign (for example : "Oblique" to character style "italique"). I've tried to write a script, but it fails at each time. It was that :
tell application "Adobe InDesign CS2"
set change preferences to nothing
set find preferences to nothing
search with find attributes {font style:"Oblique"}
set theStyle to "italique"
search with find attributes {font style:"superscript"}
set theStyle to "exposant"
search with find attributes {font style:"bold"}
set theStyle to "bold"
end tell
And yes, I'm a very beginner, as you can see. Can anyone help me with that script? What are the mystakes?
Technical Details
Message-ID:
<3bc1af77.10@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!fu-berlin.de!news.albasani.net!news.motzarella.org!news.isoc.lu!webcrossingReferences:
<3bc1af77.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fa001c3c40e04d3b X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Y._F._T@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!fu-berlin.de!news.albasani.net!news.motzarella.org!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: find & replace fonts Message-ID: <3bc1af77.10@webcrossing.la2eafNXanI> Date: Thu, 21 Sep 2006 14:25:23 -0700 References: <3bc1af77.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit