Article View: adobe.scripting.indesign
Article #16186Re: Inserting special character (hard space) in TextContents
From: hduchamp
Date: Tue, 07 Oct 2003 21:28
Date: Tue, 07 Oct 2003 21:28
17 lines
1550 bytes
1550 bytes
You're right.
Try this code:
Set myID = CreateObject("InDesign.Application.2.0")
Set myselection = myID.Selection.Item(1)
myselection.TextContents = "� " & myselection.TextContents & " �"
'ici il faut red�finir la s�lection
'pour qu'elle englobe les guillemets puis :
'set myselection=..... (je ne sais pas faire, c'est la 1�re fois que je
scripte ID)
'puis
Set myCharacter = myselection.Characters.Item(2)
myCharacter.TextContents = idNonbreakingSpace
Set myCharacter = myselection.Characters.Item(myselection.Characters.Count -
2)
myCharacter.TextContents = idNonbreakingSpace
Technical Details
Message-ID:
<84CD70584D64A72E5232A397709B8610@in.webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccdc7f1.-1@webx.la2eafNXanI> <2ccdc7f1.1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: f939a,4c31c0a10b2c334c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-07 14:37:49 PST From: hduchamp@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Inserting special character (hard space) in TextContents Message-ID: <84CD70584D64A72E5232A397709B8610@in.webx.la2eafNXanI> Date: Tue, 7 Oct 2003 14:28:22 -0700 References: <2ccdc7f1.-1@webx.la2eafNXanI> <2ccdc7f1.1@webx.la2eafNXanI> Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit