AS CS3 Tell odd pages only

Fairly new to applescript. I got a script where I'm putting text boxes and other stuff on every page, but now I need to only do it to odd pages. I'm was using this when I was doing every page:
tell pages 1 thru 130
Thought it would be something like this for odd pages only, but it wouldn't compile:
tell pages 1 thru 130 by 2

what if page numbering starts from page 2 in the document?
If what you want is to do something only to right-hand pages, it would probably be better to use something like this:
tell application "Adobe InDesign CS4"
tell document 1
set thePageNums to document offset of every page whose side is right hand
repeat with onePageNum in thePageNums
tell page onePageNum
-- do your stuff
end tell
end repeat
end tell
end tell
Or even:
tell application "Adobe InDesign CS4"
tell document 1
set thePageNums to document offset of the last page of every spread
repeat with onePageNum in thePageNums
tell page onePageNum
-- do your stuff
end tell
end repeat
end tell
end tell

Similar Messages

  • Duplex printing is odd pages only

    printer is printing only odd number pages for duplex printing

    Please read this post then provide some details.  What printer model? What operating system? How is the printer connected - USB, wired LAN, Wireless LAN, bluetooth? Are there any error messages on the printer or computer screen?  Do you have an automatic duplexer?  Is it enabled as discussed here?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How can I print only "odd" or only "even" pages with version10.6.3

    Sorry for my stupidity, but I'm very new to Mac. Love it, but am about to throw it across the room. My old PC just had a button to click in the print window that said "print only odd pages", then I could turn the pages over and click "print only even pages" and they would be two sided.
    Where is this button on the Mac?
    Thank you

    Your welcome. BTW you may want to invest a few bucks on a good OS X book, lots of really useful information that can save you a huge amount of time. One I really like is:
    http://www.amazon.com/Mac-OS-10-6-Snow-Leopard/dp/0321635388/ref=sr11?ie=UTF8&s=books&qid=1273639626&sr=8-1
    Regards,
    Roger

  • How do I select, extract, delete, etc... only the even or odd pages?

    I have a 2000+ page document and I need to somehow select all the even or odd pages so I can pull them out of it that doesnt require me from having to click 1000 individual thumbnails.  I know how to print even or odd pages but dont see any way of just selecting them for editing

    I don't know where they are in Word but the print dialog is standard throughout OSX and this seems logical enough.
    The only problem is the Paper Handling is hidden under Layout. But sort of makes sense.
    Peter

  • Can I print only odd pages or even pages?

    Hi,
    I would like to be able to print only odd pages, then turn the stack over and print the even pages. I often need to reprint manuals from pdf files for my clients. Some need to be printed this way. My old PC would do this. The tech support at HP says the problem is the Mac printer software doesn't have the option to print only odd or even pages. -Kentar

    Hi kentar,
    You wrote:
    "I often need to reprint manuals from pdf files for my clients. "
    You can do this with Adobe Reader.
    Simply press Command-P to summon the Print dialogue box, and then in the Subset box, select Odd pages from the drop-down menu.
    Check the box for 'Reverse Pages' if you like.
    I generally print the odd pages first in reverse order, and then just turn the stack over and then print even pages in forward order.
    If you need a copy of the freeware Adobe Reader, click here

  • Ill.CS3 - Why can I only work with one sheet on the desktop? I want to design a multi page document...

    ill.CS3 - Why can I only work with one sheet on the desktop? I want to design a multi page document...

    Use this ancient work-around:
    Create mutli-page PDF | Illustrator

  • How to: print selected pages, same pages, odd pages on a book?

    hi,
    about book:
    how can I print only pages that I want to?
    Like selected pages, odds pages or only that I want?
    How can I print front-back sheet?
    Thank you

    [Jongware] wrote:
    I don't think it's possible to set the page range of a Book.printPreferences
    Theoretically it ought to be possible. Can't test for myself now; what does happen when you set the pageRange to overlapping sub-files?
    I've just tried it with CS3. It might have been implemented in later versions.
    In the print Book dialogue the page range field is disabled. You cannot enter anything there.
    If you try to do it with a script it says that printPreferences is read only.

  • How do i print a table on odd pages leaving the same space in the even page

    Hi,
    I have created an RTF for Invoice Printing and the invoice will be physically printed (hard copy using printer) on both sides of the paper.
    I now have a table/section to be printed only on the first page and the second page should be printed without this header (the header should be displayed as space).
    How do i use even and odd page printing for this? I can send you the xml file and rtf file, could you please help me to achieve this?
    Thanks,
    Kesava

    Guessing here
    In the RTF the first page has whatever you were going to put on it.
    On the second page you put your invoice format/field codes etc.
    I am assuming you are using a for-each at the begining of each invoice?
    If the invoice is fixed length, then make the invoice two pages long before you finish the first for-each group.
    for-each
    page of invoice + blank page
    page break
    end for-each
    Headers and footers might get in the way.

  • Different page number eve/odd pages pages 5.2

    i am writing a thesis for my university and by formatting rules i need the pages number on even pages to be on the to(header) left and odd pages on the top(header) right. now this was super easy to do in pages 09 and before. i haven't needed that feature ever since but now i do and in pages 5.2 it seems to be impossible. as this is also a feature essential to publishing, due to the binding of the pages which makes it necessary to print them either "inside" or "outside" i cannot believe that apple has removed this feature as it would make writing documents intended for publishing in pages pointless. please help. thank you

    thanks for your reply but it's the most recent version there is, or at least i assume so because there are no updates available. i wish now i would still own my old notebook because on this machine MBP late 2013 i never had and still don't have a copy of the old iWork's 08/09.
    i take it from your answer that my efforts in finding a solution are futile because the formatting option i'm asking for has been removed from the code?
    the only way pages lets me have different formats for even and odd pages is by either manually inserting a section break every time i reach the end of a page(as opposed to just writing in the flow) or manually numbering the pages after i have completed my work, both don't really turn me on so much as the document will end up in at least 200pages(required by my university) probably more given my research.
    last option appears to be to install MS-word, which i really really really want to avoid because i am a convinced apple user for over a decade now......or maybe would you know where i can procure a copy of the old iWorks, the internet seems to only offer me questionably legal downloads.
    nikolaus

  • Won't display odd page on right in two-up view

    thanks in advance for reading this: I self publish several books of my own. Using InDesign CS3 I've exported them (for years, all the way back to Pagemaker) as a 'book' pdf and with ID's wonderful view pdf feature, I've been able to review them 'two-up' the way they would appear after printing. After CS3 for some reason, I can't get Acrobat to let me view them with the odd page, ie., the first page, starting on the right panel, the even on the left and so on.
    At first I thought it was a page numbering or pagination issue from Indd, but....I've gone back to older pdf's in previous books and brought them up in Acrobat and the same thing now appears. Can't seem to find any reference to this in the online help or the local help files.
    Any ideas? I'd be most appreciative....

    Using Version 8.1.2
    Goto VIEW
    Then PAGE DISPLAY
    Then select SHOW COVER PAGE DURING TWO UP
    Seems to work for me, took a bit of hunting to find that, despite Adobe's online help telling me that multiple page documents will always display with the odds on the right to make sense of books!

  • Acrobat 7.0 convert printing multiple bookmarks as odd pages

    Hi all,
    A common problem I've been having is being sent .pdf's with bookmarks, and only one page; the rest bookmarks. How can I print them as 'odd pages' then print as 'even pages' so I'm not wasting lots of paper. Also too time consuming to print one page at a time.
    Any help greatfully received.
    Regards
    Darren

    Thanks I'm aware of that feature.
    The bookmarks are there, but there aren't any pages. You have to click on the bookmark to display said page. There is a total of 30 documents (pages but we won't call them that as they are bookmarks). When you go to print you need to click on the bookmark/page you want to print, and it only recognises that page. Not the other 29 bookmarks.
    My understanding/research on bookmarks indicates pages are needed. However this document is not showing that at, the bookmarks are treated as pages. As I did not create the document I wonder what the scandal is???
    Regards

  • Split PDF, name odd pages and name even pages in sequence

    I need help creating a script to ask the user for a PDF file then do the following:
    -Extract even pages and rename name with "_Front#" ending where "#" is a number sequence starting with 1.
    → ex: the PDF I choose when prompted is "anatomyBook". The extracted even pages would be:
         - anatomyBook_Front1,  anatomyBook_Front2, anatomyBook_Front3,...
    -Extract odd pages and name them similarly except replace "Front" with "Back" 
    Thanks for the help!

    Ok, I have solved some issues I found with the previous script and Automator configuration.
    The Filter Finder Items action apparently uses kMDItemKind to determine the file type, and if you choose a PDF file without an extension, this action will not pass the file to the Bash script. Result: 0.
    The mdls command, for the same reason will always fail to get a page count when it encounters a extensionless PDF file.
    Remove the entire mdls/egrep command sequence from the script.
    Wrote a shell function that runs Python, imports the CoreGraphics module, and returns the page count for PDF files with/out extensions. The function takes as its argument, the input PDF filename, which it passes into Python as a command-line argument ($1). It returns a page count.
    Replace entire Bash script in Automator with the following code.
    New Bash Script
    #!/bin/bash
    # Requirement: Install Skim PDF reader
    # Location: http://skim-app.sourceforge.net
    # Usage: progname.sh sample.pdf
    # Author: VikingOSX, August 2014, Apple Support Community
    function PDFpagecnt () {
    /usr/bin/python -c \
    "import sys
    from CoreGraphics import *
    pdfdoc = sys.argv[1]
    provider = CGDataProviderCreateWithFilename(pdfdoc)
    pdf = CGPDFDocumentCreateWithProvider(provider)
    print('{}'.format(pdf.getNumberOfPages()))" "${1}"
    function ASDialog () {
    `osascript <<-AppleScript
        set pdfFile to "${1}"
        set evens to "${2}"
        set odds to "${3}"
        set msg to ""
        set msg to msg & "PDF Processed: " & pdfFile & return
        set msg to msg & "Front Pages: " & tab & evens & return
        set msg to msg & "Back Pages: " & tab & odds
        tell application "System Events"
            display dialog msg with title "Processing Complete" giving up after 20
        end tell
        return quit
    AppleScript`
    skimPDF="/Applications/Skim.app/Contents/SharedSupport/skimpdf"
    pdfFile="$@"
    basename="${pdfFile%.*}"
    even=1
    odd=1
    pagecnt=$(PDFpagecnt "${pdfFile}")
    for mypdf in "$@"
    do
        for page in $(seq 1 $pagecnt)
        do
            if [[ $((page % 2)) == 0 ]]; then
                #even extractions
                `${skimPDF} extract "${pdfFile}" "${basename}""_Front"$((even)) -page ${page}`
                ((++even))
            else
                #odd extractions
                `${skimPDF} extract "${pdfFile}" "${basename}""_Back"$((odd)) -page ${page}`
                ((++odd))
            fi
        done
    done
    ASDialog "${pdfFile}" $((--even)) $((--odd))
    exit 0

  • IND CS4: Bug with "On Next Odd Page"

    Hi -
    I'm seeing something strange in my doc.
    I have the title of my document styled to start "On Next Odd Page".
    If I make the title (which is in a text var) more than the width of the page, my entire 25 page doc goes blank. It appears that everything after & including the is all becoming overset text. Same thing happens with normal text (not a var) if there are no spaces, but not if the line can be broken on a space.
    I suspect that this is a bug in the placement algorithm, where is puts the title on the next line, it doesn't fit, so it pushes it to the next line. On the next line it says "Hey, this has to start on the next odd page", and pushes it to the next page, where the problem repeats. But that's just a guess.
    And I could be completely off - I'm still learning. It's easy to work around, shorten the title, or decrease the font size, but since I'm building a template, I'd rather not have to tell users "long titles will make your document disappear".
    Does this happen to other people?
    Thanks,
    Tom

    Oops. Lost a word. That sentence should be
    "It appears that everything after & including the TITLE is all becoming overset text"

  • Duplicate buttons on even and odd pages

    I would to be able to place in Acrobat on 100 facing pages document some buttons for printing and navigating but on different positions for odd and even pages. The Duplicate command does not offer any option for it. There is any available script for it? Thanks.

    Only if user written.
    You could use the template feature of Acrobat to make 2 templates, one for the odd pages and the the other for the even pages, and then overlay the template on the appropriate pages.
    Or split the PDF into odd and even pages, apply the buttons and then recombine the PDFs.

  • Skip odd pages

    Hi everyone!
    I've got a problem printing a report. I'm printing both side of a page.
    Then when I've got a odd page I have to skip to a new page. Then,
    I'd like to know if either that feature is possible or I have to print my report in a different way.
    Thanks a lot in advance
    Ricardo Pitty
    [email protected]

    ricardo,
    understanding your question correctly, i assume you want to start the instances of your main repeating frame always on an odd page (e.g. 1,3,5,7,9) resulting in printing on the facing page in duplex printing.
    you can do this by putting an object on the beginning of your block (e.g. a white line) and create a format trigger, that shows this object only on even pages. then you specify the page-break before property.
    what happes is, that the first object that is formatted on the first page of each repeating-frame instance will be this object. if it happens to be on an even page (back of the physical sheet of paper), the object is formatted but before that a page-break is performed, hence the object will end up an an odd page (=facing side of the physical sheet of paper). in case your instance happens to be formatted onto an odd page, the object is not formatted and the page-break is not performed.
    regards,
    philipp

Maybe you are looking for

  • Printer won't print more than one copy

    Ever since I got my new computer, I have not been able to print more than 1 document at a time from Microsoft Works.  When I need to print over 500 hundred copies every few months, this is a big problem for me.  Any other programs will print as many

  • How can i import data to ipad from pc ?

    how can i ımport data to ipad from pc ?

  • Need to transfer moviefrom iPod  to iTunes

    Some how a movie I had disappeared from iTunes but I still have it on my 5th Gen iPod. How can I transfer it to iTunes? It was Family Guy's Blue Harvest Free download from iTunes that came with the DVD.

  • Call all instances of a symbol

    Hej, i need to place 10 different kinds of symbols, a hundred times each on my stage. Theses symbols have the same shape, but different colors. I need to filter them out in a tiny top-menu. So, if i click e.g. on a red circle, i want all non red symb

  • Ff takes a lot of time to find pages

    after starting my computer, it takes several minutes (up to 5 min) before Ff finds even the startup page. So there is always a kind of "warm up" phase ,and after about 10 to 20 minutes of use it starts to act normally. I'm using Ff 3.6.8 edit