🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10268

Re: [AS, Mac, German Version]: Problems with character style "none"

#10268
From: Gabriel_Birke
Date: Thu, 29 Jun 2006 08:29
8 lines
1158 bytes
Another - language independent - solution would be to set the character style to the first item of the defined character styles of the document. "No style" is always the first element.

This is how I've done it in JS (with the document object stored in the variable myDocument):
text.appliedCharacterStyle = myDocument.characterStyles.item(0);

in Applescript it could be something like:

set applied character style of item 1 of selection to first item of character styles of myDocument
Technical Details
Message-ID: <3bc0c186.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0c186.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b8152ae4ed679a5e
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Gabriel_Birke@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS, Mac, German Version]: Problems with
 character style "none"
Message-ID: <3bc0c186.4@webcrossing.la2eafNXanI>
Date: Thu, 29 Jun 2006 01:29:50 -0700
References: <3bc0c186.-1@webcrossing.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing