Skip to main content
Participating Frequently
July 25, 2008
Question

script error

  • July 25, 2008
  • 14 replies
  • 1143 views
{ var theCodes = [[1096971116, ["absolute", "absolute numbering"]], nbsp; [1935897710, ["section", "section numbering"]]];
This topic has been closed for replies.

14 replies

Inspiring
August 4, 2008
I think this was a case of the feature being downgraded late in a release and scripting didn't have time to backtrack from the fuller support.

It doesn't work very well. There's almost no difference between fully balanced and vee-shape half the time.

So, they backed off the feature in the UI.

I think this is the only case of this sort of thing that I know of.

Dave
Jongware
Community Expert
Community Expert
August 4, 2008
Wot!!

(Checking, please wait.)

BalanceLinesStyle

NO_BALANCING Does not balance lines.
VEE_SHAPE Prefers shorter last lines.
FULLY_BALANCED Balances lines equally.
PYRAMID_SHAPE Prefers longer last lines.

Now you've done it. Now I have to try them all and find my
i preferred
one. When it was so easy ... on or off ...

Any particular reason this is in scripting but not the UI? And, are there any more of these hidden gemlets? (I'm not talking about the rainbow lines.)
Inspiring
August 4, 2008
But in the interface, you can select all those searchable objects and then search them using the Selection choice.

On the other hand, in a script, there are four choices for balance ragged lines while in the UI there are only two.

Dave
Peter Kahrel
Community Expert
Community Expert
August 4, 2008
>A script can't do anything that you can't do in the user interface. You can't do that in the user interface. Therefore, you can't do it with a script.

Well... In the interface you can search the current document, all documents, a selection, and to the end of the story. That's it. In a script you can search a textframe, a paragraph, a word, a table column, an insertion point (not sure what you'd hope to find there) -- you name it.

Peter
Known Participant
August 4, 2008
Hi suvoWillShine,

To have the page numbering of a document start at zero, you need two sections: one for the first page, and one for all succeeding pages. The numbering start of the first page doesn't matter--instead of using an automatic page number marker, simply enter zero wherever you'd like the page number to appear. The second section should start with page 1, and you can use the page number marker on all subsequent pages.

This accomplishes what you want to do without trying to do something that cannot be done. Did that make sense?:-)

Thanks,

Ole
Jongware
Community Expert
Community Expert
August 4, 2008
Such a script is not possible.

A script can't do anything that you can't do in the user interface. You can't do that in the user interface. Therefore, you can't do it with a script.
Participating Frequently
August 4, 2008
Yes i think you are right.Can you give me some script which can numbr the pages from 0 instead of 1....

Thanks
Jongware
Community Expert
Community Expert
July 30, 2008
Suvo,

Do you understand the script? As far as I can see, it
b will
display a dialog box with "section numbering" (or "absolute numbering", or "xxx not recognized"). So, you have section numbering and want something else? Well, this script doesn't
b do
that. It merely tells what the settings in your document are, not tomorrow's lottery numbers or anything.

>Script Description: This script is intended to display page numbers staring from 0

In that case it just doesn't do what the description says it does.
Participating Frequently
July 30, 2008
After removing nbsp;, the code is running but is not giving the desired output. A dialog box with "Section Numbering" written on it is displayed.....
Inspiring
July 28, 2008
You have something weird in your source code that is being interpreted as nbsp; (looks like   -- HTML for non-breaking-space) in that line of code. Delet everything between the , and [ where that text appears in the error message.

This is at least the third time that this has been pointed out to you.

Dave