🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8221

Re: Scripts not seen

#8221
From: Jason Drabek
Date: Tue, 24 Oct 2006 17:48
40 lines
2395 bytes

      Does she know where to look for the Scripts palette?




Yes but she says it's empty (nothing there but the palette).

This is what she wrote:

I cannot understand why the text counter file is not showing up in my scripts box�

Any other ideas I can try?

Also, since I see that I can get the word count text frame by text frame (pain in the behind) if I use the text tool and click on a certain place in the file and then hit F12 and go to the info palette. But that is not a solution because I have an Indesign file that has like 50 different text frames and this counter must be done one time per text frame=it will take forever.

With that said, do you know of any way that Indesign can �combine all the text frames in a document� so that I can get one total word count for the entire Indesign document?

So, I was going to suggest she try the following script, but when I tested it on my machine, I found that it didn't work.

//link_stories.js
//
if(app.documents.length != 0){
    var myDoc = app.activeDocument;
    for (oneStory=myDoc.stories.length-1;oneStory>0;oneStory--){
        if (myDoc.stories[oneStory-1].characters.length>0){
            if (myDoc.stories[oneStory-1].characters[-1].contents!="\r") myDoc.stories[oneStory-1].insertionPoints[-1].contents="\r";
        }
        myDoc.stories[oneStory-1].textFrames[-1].nextTextFrame = myDoc.stories[oneStory].textFrames[0];
    }
}

JavaScript Error
Error Number: 30614
Error String: Invalid object for this request
Line: 9
Source: myDoc.stories[oneStory-1].textFrames[-1].nextTextFrame = myDoc.stories[oneStory].textFrames[0];

I don't know for sure but I think that could be caused by the fact that some of those frames are grouped with graphics then put into the story as inline graphics.
Technical Details
Message-ID: <3bc0a3b7.11@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0a3b7.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5c06a98f0dce6620
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII
From: "Jason Drabek" <raiderwolf@gmail.com>
Newsgroups: adobe.scripting.indesign
Subject: Re: Scripts not seen
Message-ID: <3bc0a3b7.11@webcrossing.la2eafNXanI>
Date: Tue, 24 Oct 2006 10:48:36 -0700
References: <3bc0a3b7.-1@webcrossing.la2eafNXanI>
Lines: 35
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing