🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8870

Re: find & replace fonts

#8870
From: Shane_Stanley
Date: Thu, 21 Sep 2006 21:59
30 lines
2086 bytes
On 22/9/06 7:25 AM, "Y.F.T" <member@adobeforums.com> wrote:

> 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 

Try something like this:

tell application "Adobe InDesign CS2"
set change preferences to nothing
set find preferences to nothing
search with find attributes {font style:"Oblique"} with change attributes
{font style:"Italic"}
search with find attributes {position:superscript} with change attributes
{position:normal}
search with find attributes {font style:"Bold"} with change attributes {font
style:"Bold"}
end tell 

I don't know whether you will have to use the English names or not.

-- 
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <C139485C.301B6%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing
References: <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: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: find & replace fonts
Message-ID: <C139485C.301B6%sstanley@myriad-com.com.au>
Date: Thu, 21 Sep 2006 14:59:24 -0700
References: <3bc1af77.-1@webcrossing.la2eafNXanI>
Lines: 35
Received: from bld-mail03.adl2.internode.on.net [203.16.214.67] by adobeforums.com; Thu, 21 Sep 2006 15:22:54 -0700
Received: from [192.168.1.2] (unverified [59.167.75.174])  by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 27629597  for <adobe.scripting.indesign@adobeforums.com>; Fri, 22 Sep 2006 07:29:25 +0930 (CST)
Return-Path: <sstanley@myriad-com.com.au>
User-Agent: Microsoft-Entourage/11.2.5.060620
Thread-Topic: find & replace fonts
Thread-Index: AcbdyTL5ccM48Em8EduPpQARJHm3nA==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit