automatic numbering of pages with ACE

Hi all

I am fairly new to Applescripting but I wrote a script to create a page in InDesign CS5, but now I'm putting the pagenumber in the same script.

I tried what follows, but did not work:

mypagenumber the value text returned by (¬display dialog box

'set pagenumber' with the title "Paginanummer instellen" with icon 1 ¬

default '1' buttons {"instellen"} default button 1)

Tell application "Adobe InDesign CS5"

the value start page number of the active document to mypagenumber

tell the end

I'm hoping that someone can tell me what I'm doing wrong.

Thanks in advance,

Michael


-The number of start page expects an integer, not a string of text. Simply compel an integer as follows:


mypagenumber the value of text returned of (display dialog 'set of pagenumber' title 'set the pagenumber' with button 1 by default answer '1' icon buttons {'set'} default 1)

say application "Adobe InDesign CS6.

say document 1

tell document preferences

set start page of (mypagenumber as integer) number

end say

end say

end say


Tags: InDesign

Similar Questions

  • Automate printing odd pages with page 2

    I want to print all the odd pages with page 2.

    In this order, 1,2,3,5,2,7,2,9,2,11,2,13,2,15,2,17,2,19,2,21 etc.

    Basically, 1,3,5,7,9,11,13,15,17

    And insert a 2 between each of them.

    Can do it with GREP - not a practical solution in the long term.

    Someone at - it a clever way to do this in Excel?

    Eugene,

    Do you mean you want a formula with an Excel file? Like this:

    For example, I want to print pages 1 to 57. Then I select the B-29 cell and copy it!

  • loading other pages with ACE

    I find no simpler questions in my flash book...

    In my main page I load the content of my image in flash with _root.gotAndX (#), but when I want to load other swf files into my main page that do change the _root. TO? Should I still change _root or even use it?

    I know it takes loadMovie(), or something similar to this, but how a tell flash that the content is outside the current document and also how tell flash where this external content belongs within the main document...

    First of all, it's a bad idea to use numbers as file names. Don't, don't.
    Second, using MovieClipLoader is a best practice with a loadMovie.
    See the MovieClipLoader class, in Help and do some reading. He
    are good examples in there.

    Background - you can load a SWF into a movieClip on the stage.

    --
    Dave-
    Developer leader
    www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • Automatically loads the page with https

    Firefox will automatically load the following sites using https

    If I type in
    cgets.com

    It automatically goes to https://www.cgets.com

    If I type in
    Google.com

    It automatically goes to https://www.google.com

    Why is this and is at - it a way to stop if to do this?

    Current version of Firefox may prefer a secure connection if you have never used a secure https connection to visit the pages on a Web site.

    Try to set the Boolean browser.urlbar.autoFill false pref on the topic: config page.

    See 'Prevent Firefox to automatically complete URLs':

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • How can I make automatic numbering of tables Pages to print?

    Hello people,

    I recently change my old macbook to a macbook pro, so now instead of office for mac, I use Pages 5.6.1. and my problem is I can't find no option in the parameters of format that allows me to perform automatic numbering that appears for permanent tables. I'm about to finish my master's thesis, and the reader is oriented to the data displayed in my title tables and the table number line, however, when I print the tables that the numbering never appears. I would have thought about this before, but now it seems a little paradoxical for me to manually have the number of hundreds of lines.

    So: Is it possible to do automatic numbering that appears in the form of guidelines on the tables of the Pages have become permanent, so it gets printed?

    Thank you for your time and your ideas! They will be very much appreciated.

    Strange question for a master's student.

    Just insert a column/row of the table and put your numbers in that.

    Method of pages to create sequences is the only thing different.

    Number 2 first cells with the sequence that you want for example 1,2 > select the two cells and a small yellow dot appears below > that drag down to continue the sequence: 1,2,3,4,5,6...

    The sequence may be something:

    Numbers, 27, 30, 33

    Base numbers: 0001, 002, 0003

    Letters A, B, C

    Days Mon, Tue, Fri

    Month, Jan, Feb, Mar

    Text + number, topic 01, 02, 03 subject

    Peter

  • Automatic numbering of chapters given to 1 on a new page

    Hello

    I'm working on the application of automatic numbering for my chapters.

    I'm able to accomplish the same use "Bullets and numbers" under "paragraph Styles".

    chapter headings.PNG

    However, when I move to the next page, my chapter numbers given 1 again despite the use of the same style of "level 1 head.

    chapter headings_2.PNG

    I would be grateful if you can help me solve this problem.

    Thank you

    Ashim

    I wish to have the number 1. against 'Hello World' and not '5' as it results in the table of contents.

    With the text tool, right click on the line of text to the number 5 and select restart numbering

  • Script dynamic Page numbering does not work on pages with engineered?

    I work in Acrobat Pro XI on a document of 4 pages with a button that allows a page template will be inserted after page 3.  I created a button for this, and it works fine.  But each page has a text field that is supposed to automatically update all the page numbers.  The code looks like this:

    Event.Value = "page" + (event.target.page + 1) + "of" + this.numPages; ""

    calculateNow();

    On the four pages visible when the file is opened it works perfectly; they will update "Page 1 of 4" to "1 of 5", etc. without any problems.  However, the inserted template pages are very random.  Sometimes the firstbegotten will work and say Page 4 of 5, but sometimes he will say Page 0/4.  It is worth noting that even when he says Page 4 of 5 print this page shows that this saying Page 0 out of 4 again.  And all additional pages triggered after which lists a bunch of random numbers on the right number of pages.  So it will look like "Page 7, 6, 5, 4, 31 9.

    I search by a large number of questions already asked and have not seen enough.

    If you want to add a new page with each press of the button, you can simplify the code:

    getTemplate("Addittional_Collaborators").spawn (numPages, true, false);

    but you need to add code to define correctly the ' page x of y "field values. Post again if you have trouble with this part.

  • Three tickets per page with auto numbering to 300 tickets ticket

    I want to print 300 tickets with unique sequential ticket numbers. I have three tickets per page. Is it possible to do it automatically?

    I do tickets using a number of list generated in Excel and saved in a text file. You can do this in a number of ways.

    Easier is to set up the master page with three frames of text related to contain the number and define a paragraph with an option of Dungeon style to start each paragraph in the next section, then use the file > place... and the automatic text placement.

    You can also implement models of fusion of data (whether for one record per page, which requires three numbers each record for three of the tickets or for a several records per page merge, which would use one number per line) and the tickets in this way.

    If you google, you probably can find several previous discussions where this is discussed in detail by me and several other users.

  • Help with the chapters of the automatic numbering

    Hello

    I'm a newbie on FrameMaker, that I don't use it very often, so please forgive me if this is a stupid problem. I inherited a FrameMaker manual from the person who was my work in the past and for the first time in three years, I had to add new chapters to the project. I upgraded from 7.2 to 9 recently. However, I'm unable to get the new numbering of correct chapter. From what I could gather the help of FrameMaker, I seem to have these options properly configured:

    • Chapter dialing properties: for example, the first chapter, I've added is defined in chapter No. 21, and continue numbering from previous chapter in book option is selected.
    • In the paragraph Designer, format of chapter.number (which is used to display the chapter number on the title page of each chapter) has a formula for C: < n > +, exactly as the other chapters having correct numbering.
    • I checked the options in the text block box customize, and the stream seems OK (tag is A, and automatic connection is enabled). Again, these settings are exactly the same in the previous chapters.

    Despite all this, each new chapter, I added appears in Chapter 1 on the page, in the running footer and title and I can't understand what I'm doing wrong. I am trying to get this book done before I go on vacation Friday and this is my last hurdle, so any help is greatly appreciated.

    Thanks in advance!

    Older versions of chassis, chapter numbering has been treated as an AutoNumber paragraph, which seems to be the case in your books. Therefore, your chapter number really is a paragraph number, about Frame is concerned. In more recent versions, chapter numbering is handled with a special building block <$chapnum>, which is what affects the numbering of chapter.

    Then, because your documents have been initially implemented with the old system of automatic paragraph numbering, the easiest thing for you to do is the NUMBERING of the paragraphs for your new chapters continue the numbering of the previous paragraph in the book. This in the book, not the file chapter; in other words, in the book, right click on the chapter file and select numbering. This approach assumes that ANY OTHER numbering in the files, such as figures, is managed with other sets of numbering, i.e. NOT of C:

    If you want to update the numbering system and managing the numbering of chapter numbers chapter, and then in the designer of paragraph for the chapter title format, to replace the C: with <$chapnum>you must do this for each chapter file; an easy way is to do a single file and then import the paragraph format in other files the fixed file open, select other files in the book file, select file > import > Formats, select only the paragraph formats.

    Hope this helps,

    Van

  • HP7520: How to scan 2 pages with the automatic document feeder and save to a file?

    How can I scan 2 pages with the automatic document feeder and save to a file?  (Right now, it happens that 2 separate files)

    I have a HP7520, & again, I wish scan 2 pages into a single jpeg file.

    Thank you

    Well, in general JPEG format does not support several concept as a document page. Thus, each image in the JPEG file is saved in a single file. If you are considering of reduction of 2 images in 1 paper size (example: A4), you may need some image editor to do

    If you are looking for a mulit-page image format, TIFF can be a format suitable to use.

    https://en.Wikipedia.org/wiki/TIFF

  • Double automatic numbering on 1 page

    Hello

    I need a way to add automatic numbering on a page, I know that indesign can add this based on the number of page, but I have to add 2 numbers on the same page.

    So let's say I want to have a page from 10 to 26, I want on page 1 page 2 the numbers 10, 11, 12, 13 numbers and so forth.

    Is it possible to do it automatically and not by hand? I want to add a large number of pages that make it impossible to do it one by one.

    Thank you

    Lists are extremely easy to do in Excel (and most other spreadsheets). Enter the number three trois premieres first in the first three cells in a column, and then select cells and drag the small handful in the lower right of the selection down to automatically fill as the cells that you need. Save as .txt.

  • Numbering pages with words

    Is it possible automated implementation of pagination where the numbers are actually in words instead of numbers?

    For example. "Four" instead of "4"

    Here is a complete, tested Javascript with CS4, but it should work with later versions as well. It works like this:

    1 use the placeholder code "#" in your Master page (s) to indicate where the number of page - like words - should appear. Additional text around him and formatting etc should work just fine; You can even use something like

    It's # page of my first book

    and the script will change the ' # ' the full wording, retaining all formatting you applied (in this case, bold and underlined characters) for just the page number text.

    One based on master pages yet another master page should work (and in fact I so hope you happen to have consumed only because I took care of this special case, as well!).

    2. make sure that master page is applied to the pages in your document where you want the written page number.

    3. the script works with the masters both front and double-sided pages; It will not work with more than two pages per spread! (But it's a pretty unusual scenario).

    4. make sure that the numbering of the pages for these pages is in Roman numerals (1, 2, 3), not something like 'a', 'b', 'c' - the script needs the number to work.

    5. run the Script. It will replace the image placeholder on every page and replace the placeholder with the English text.

    6. If you have moved pages or changed the formatting on the master page, just run the script again and it will update everything. It will update the pages with this particular master page; If you applied another master page does not contain the page number placeholder, this does not alter the framework substituted in these pages!

    7. I wrote the function to convert number to text from scratch. Theoretically, it should be good; and then, in practice, the theory may not work. If you want to than some other formulations ("three-score and five", maybe) let me know & I'll see what I can do.

    8. the numbers as text is returned in all lowercase; by your example, I change the first word uppercase later. However, any other variant is Possible, of course.

    Enjoy!

    (Copy, paste it into a text editor such as the ESTK which comes with InDesign. Save to your user as 'pageNumberWords.jsx' Scripts folder and it should appear in the Panel Scripts. Double click to run, and then check if it worked as expected.)

    //DESCRIPTION:Convert Page Number Placeholder '#' into Text
    // A Jongware Script 11-Dec-2011
    
    var allPages = app.activeDocument.pages;
    for (iterate=0; iterate -1)
                                  return masterPage.textFrames[i];
              }
              // Not found? Perhaps on this Master's Master?
              if (master.appliedMaster != null)
                        return findFrameContaining (master.appliedMaster, side, text);
              return null;
    }
    
    // Needed because the very useful label lookup was
    // -- totally unnecessarily! -- removed in CS5+ ...
    function findByLabel (items, label)
    {
              var i;
              for (i=0; i= 1000)
              {
                        thousand = Math.floor(number/1000);
                        result = numberToText (thousand) + " thousand";
                        number = number - 1000*thousand;
                        if (number > 0)
                                  result = result + " ";
              }
    
              if (number >= 100)
              {
                        hundred = Math.floor(number/100);
                        result = result + ones[hundred]+" hundred";
                        number = number - 100*hundred;
                        if (number != 0)
                                  result = result + " and ";
              }
              if (number >= 20)
              {
                        ten = Math.floor(number/10);
                        result = result + tens[ten];
                        number = number - 10*ten;
                        if (number != 0)
                                  result = result + "-";
              }
              if (number != 0)
                        result = result + ones[number];
              return result;
    }
    
  • When I click on Outlook Express I get a blank page with (work in line/connection in the lower right corner. Nothing happens.

    How to get my Outlook Express to work

    When I click on Outlook Express I get a blank page with (work in line/connection in the lower right corner. Nothing happens.

    Folders.dbx is probably damaged.
     
    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    The path to the message will be very similar to this:
     
    C:\Documents and Settings\Your User of utilisateur\Local Settings\Application Data\Identities\ {long string of letters & numbers} \Microsoft\Outlook Express
     
    With OE closed, find the Folders.dbx file and delete it.  Another will be created automatically when you open OE.
     
    Note these possible side effects:
     
    When you re - start OE, it will build a new index of all *.dbx files it can read and create a new Folders.dbx. However, understand that you will lose the mail directory structure and message rules will probably have to be edited.
  • Dynamically, use page number in the form on the pages with their field?

    I have a form with pages having engineered.  JS for spawning exception works very well.  However, a text field on model is driving me crazy.  I wish that this field ("CaseNum") to dynamically display the page number, given that the page number also matches the file number.  On templage ("getcase"), I can calculate the value for CaseNum using custom script calc (event.value = this. PageNum).  But it does not work because each page having spawned Gets the same value (that is to say, what is the latest issue of the page generated). I also tried the JS below, using P0.getcase.CaseNum as the field on the model in which I wish the page number/box number to display:

    var this.pageNum = opaque;

    this.getField ('P' + opaque + ".getcase" + ".") CaseNum') .value = opaque;

    But it does not either, because the page automatically generated field gets the prefix of the P + .getcase page number appended to the name of the field.  Is it possible to number of dynamic page used in a form on the pages with their field?  If so, how? Note that while I try to use a dynamic file on pages with their number, it presents the same problem as dynamically displaying pages with their page numbers.  I'm a JS newbie, so any help appreciated.  I searched high and low on the web and in the forums and couldn't find the answer.  THX.

    http://forums.Adobe.com/thread/1160899

    @

    7George Johnson,.

    February 28, 2013 09:42 in reply to natelfo

    Is that what you mean?

    See also:

    http://www.PlanetPDF.com/developer/article.asp?contentid=6466

    d-template-pages-using-JavaScript-functions/ http://www.wordwizardsinc.com/blog/Finding-the-FieldName-prefix-on-Acrobat-acroform-spawne

  • Maintaining the automatic numbering in the text variables?

    I have typeset manuals that often have several levels of headings in a single chapter. The editor I work has a style where the first 3 levels, or of the positions will be numbered, 8, 8.1, 8.1.1. No problem. Set up the paragraph styles with auto numbering, each title to another level added for automatic numbering, and it works like a charm. The only problem is that common titles are also supposed to include these numbers with the topics. The left page, the title of the chapter, is so good because I can just insert the chapter number before the current title paragraph style text variable: 8. "chapter title." But the right page must indicate the chapter number, first number of lower level and title (8.1 "topic"). When I use a text for this variable, the numbering created by the original paragraph style disappears from the topic. If I give the leader running his own style of paragraph numbered on the master page, it will always tell '. " 1,"even when the topic changes because there is nothing for him say to start a new number. For my current project, the first sublevel of the section change every 4 or 5 pages. So I'm hoping someone can help me find a way, I don't have to do it manually. Can inDesign keep autodial? Can anyone recommend a script possible or plug-in? All comments will be welcomed with gratitude!

    camberna wrote:

    I have typeset manuals that often have several levels of headings in a single chapter. The editor I work has a style where the first 3 levels, or of the positions will be numbered, 8, 8.1, 8.1.1. No problem. Set up the paragraph styles with auto numbering, each title to another level added for automatic numbering, and it works like a charm. The only problem is that common titles are also supposed to include these numbers with the topics. The left page, the title of the chapter, is so good because I can just insert the chapter number before the current title paragraph style text variable: 8. "chapter title." But the right page must indicate the chapter number, first number of lower level and title (8.1 "topic"). When I use a text for this variable, the numbering created by the original paragraph style disappears from the topic. If I give the leader running his own style of paragraph numbered on the master page, it will always tell '. " 1,"even when the topic changes because there is nothing for him say to start a new number. For my current project, the first sublevel of the section change every 4 or 5 pages. So I'm hoping someone can help me find a way, I don't have to do it manually. Can inDesign keep autodial? Can anyone recommend a script possible or plug-in? All comments will be welcomed with gratitude!

    Thanks for the question. I saw this problem, but never had the need to work around him... until now!

    Variable text header running InDesign cannot capture the numbering of the paragraph.

    To work around it:

    Implementation:

    To create a character style to be used as a style nested within the lower level paragraph style. For testing and editing, assign a color of character; for use, change the color of the characters None or paper.

    To create a cross-reference format that captures only one paragraph Autonumbering.

    Create a character-style-based running header text variable to capture the reference; insert it into the master page.

    Use:

    * At the end of the lower level heading, insert a special character the end Style nested here.

    Continuation of the nested end marker style, insert a reference to the paragraph, using the single paragraph number format.

    The cross reference will be the color of the characters of the nested character style "fakednumber".

    The variable based on the character style to a running header text will seize the number of referrals.

    * For final hand, change the color of the style of characters fakednumber None or paper.

    Notes:

    Cross reference is placed at the right end of the paragraph of title rather than at the beginning, to avoid moving the header text. If he has withdrawal is sufficient between real auto-nombre of the paragraph and the beginning of the title, it would be possible to insert the cross-reference it.

    * Because the cross-reference occupies space on the line of position even when it is invisible, remember that it does not cause the line to be returned on a new line. You can set the size of character fakednumber style property as a very small, same font size reduce the horizontal scale, in order to minimize the risk of a new packaging line, as well as defining its color to None or paper to make it invisible.

    * When preparing a book for final hand, you can change the character of the fakednumber style definition in the Source of the Style file and synchronize it with all the other files in the book, or you can perform a search and replace across all files in Notepad to replace the instances found visible from fakednumber with the invisible style.

    * To simplify the modification of the definition of fakednumber from the visible to the invisible, consider creating two files of model to this end; one contains the definition of visible, the other contains the definition of the invisible. Load character style definition in the style source, and then synchronize the character on the book styles.

    Mission possible:

    * To simplify this task in the future, nag Adobe do running variable header text capable of capturing the numbering by filing an official request here: Adobe - feature request/Bug Report Form.

    *

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

Maybe you are looking for