🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16181

Inserting special character (hard space) in TextContents

#16181
From: Guy_Verville
Date: Tue, 07 Oct 2003 19:42
17 lines
1201 bytes
Hi,

The code below works except for the ^s character. How to insert hard space in text?

Thanks for your help.

Set myID = CreateObject("InDesign.Application.2.0")
  Set mySelection=MyID.Selection.Item(1)
  Select Case TypeName(MySelection)
          Case "Text","Character",
  "Word", "TextStyleRange", "TextLine", "Paragraph"
          MySelection.TextContents="īŋŊ^s"
  & MySelection.TextContents & "^sīŋŊ"
  Case Else
          MsgBox "Choisissez du texte,
  s.v.p."
  End Select
Technical Details
Message-ID: <2ccdc7f1.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,4c31c0a10b2c334c,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-07 13:08:27 PST
From: Guy_Verville@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Inserting special character (hard space) in TextContents
Message-ID: <2ccdc7f1.-1@webx.la2eafNXanI>
Date: Tue, 7 Oct 2003 12:42:42 -0700
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit