🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8480

myStory.changecase PROBLEM

#8480
From: Miha Kos
Date: Thu, 05 Oct 2006 05:31
13 lines
1470 bytes
In my short script I am selecting a rectangle containing story and I want to 
change the case to sentence case. By the book it should have been done by 
myStory.changecase.
But I am getting the
Error number 1, Error String: "Runtme error"
Unfortunately I am using CS not CS2.

  myStory = app.selection[0].parentStory;
   myStory.changecase(ChangecaseMode.sentencecase);

Any ideas how to evrcome the problem?

Miha
Technical Details
Message-ID: <hN0Vg.5111$oj5.2037805@news.siol.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.siol.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e0599e3e3d654eeb,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.siol.net!not-for-mail
From: "Miha Kos" <miha.kos@h-e.si>
Newsgroups: adobe.scripting.indesign
Subject: myStory.changecase PROBLEM
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 0640-2, 04.10.2006), Outbound message
X-Antivirus-Status: Clean
Message-ID: <hN0Vg.5111$oj5.2037805@news.siol.net>
Date: Thu, 5 Oct 2006 07:31:55 +0200
NNTP-Posting-Host: 193.77.159.172
X-Complaints-To: abuse@siol.net
X-Trace: news.siol.net 1160026317 193.77.159.172 (Thu, 05 Oct 2006 07:31:57 MET DST)
NNTP-Posting-Date: Thu, 05 Oct 2006 07:31:57 MET DST
Organization: Slovenija OnLine - SiOL