🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9856

Re: Superscript Inserted Text

#9856
From: jeffkr
Date: Thu, 13 Jul 2006 18:48
12 lines
1114 bytes
My script was working except for the superscript part. I am not sure how to assign that. Is there a way to do this?

tell application "InDesign CS"
	set theInsert to insertion point 1 of selection
	set contents of theInsert to "With "
	set theItalic to insertion point 1 of selection
	set properties of theItalic to {font style:"Italic"}
	set contents of theItalic to "Coupon"
	set theSuper to insertion point 1 of selection
	set properties of theSuper to {font style:"Superscript"}
	set contents of theSuper to "1"
end tell
Technical Details
Message-ID: <3bc0e75e.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0e75e.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ef4335fe847ce437
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: jeffkr@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Superscript Inserted Text
Message-ID: <3bc0e75e.3@webcrossing.la2eafNXanI>
Date: Thu, 13 Jul 2006 11:48:40 -0700
References: <3bc0e75e.-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!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing