🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18950

Re: RANT: Ratings at Studio Exchange

#18950
From: Olav Kvern
Date: Thu, 06 Feb 2003 23:00
47 lines
2318 bytes
Phil--

Huh--I hadn't noticed that you were a guilty party. Bad, bad Phil!<g>

I'm having no luck uploading things to the site at present, anyway--the upload mechanism seems to be broken.

You need a VB version of SplitSelectedStory? There's one here, somewhere, but I'll post it again:



Rem SplitSelectedStory.vbs 
rem An InDesign 2.x script 
Rem Splits the selected story into separate (i.e., unthreaded) text frames. 
Rem To use this script, select a text frame, then run the script. 
Rem Note: Any overset text at the end of the story will be deleted. 
Rem Note: Hyphenation points between text frames will not be retained. 
Set myInDesign = CreateObject("InDesign.Application.2.0") 
Set mySelection = myInDesign.Selection 
Rem Process the selection. If text or a text frame is selected, 
Rem do something; otherwise, do nothing. 
If mySelection.Count > 0 Then 
    Select Case TypeName(mySelection.Item(1)) 
        Case "Text" 
            Set myStory = mySelection.Item(1).ParentTextFrame.ParentStory 
            mySplitStory = True 
        Case "TextFrame" 
            Set myStory = mySelection.Item(1).ParentStory 
            mySplitStory = True 
        Case Else 
            mySplitStory = False 
    End Select 
    If mySplitStory = True Then 
        Rem Duplicate each text frame in the story. 
        For myCounter = myStory.TextFrames.Count To 1 Step -1 
            Set myTextFrame = myStory.TextFrames.Item(myCounter) 
            myTextFrame.Duplicate 
            myTextFrame.Delete 
        Next 
    End If 
End If 




Thanks,

Ole
Technical Details
Message-ID: <1de7bbc2.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de7bbc2.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8518b126b6f86a3a
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-06 15:07:46 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!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: RANT: Ratings at Studio Exchange
Message-ID: <1de7bbc2.1@WebX.la2eafNXanI>
Date: Thu, 6 Feb 2003 15:00:01 -0800
References: <1de7bbc2.-1@WebX.la2eafNXanI>
Lines: 47
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit