AS CS3 go to first page

Still a newbie to applescript. I'm just trying to get the document to go to the first page.  What's the syntax/codescript I need?
Here's my chunk from my bigger script:
try
tell layout window 1 of MyDoc
go to first page
end tell
end try

You're right -- this is a case where using tell causes problems. You can use this form:
  set active page of layout window 1 of document 1 to page 3 of document 1
Otherwise you nedd to use a reference:
set thePage to page 3 of document 1
tell layout window 1 of document 1
set active page to thePage
end tell

Similar Messages

  • [CS3][JS] Return first page for story

    I'm bogged down trying to find a simple way to return the number of
    the first page that a particular story appears on, assuming that it
    is placed on a page and not all overset. Or the number of the page
    that the first word in the story appears on, or something like that.
    Can anyone help a beginner?
    Noel

    > myStory.textContainers[0].parent.name
    This will not work if the frame is in a group (which most of the time is not the case, so it probably doesn't matter). But just in case, the following method will reliably find the correct page, but is not necessarily the most efficient, depending on the number of pages in the document.
    >var myFrame = myStory.textContainers[0];
    var myPage = GetPageOfFrame(myFrame);
    var myPageName = myPage.name; // the page's folio, a string
    var myPageOffset = myPage.documentOffset; // the nth page of the document, a number
    function GetPageOfFrame(theFrame)
    ]for (var p = 0; p < app.documents[0].pages.count(); pi++)
    ]]var myPageItems = app.documents[0].pages[p].allPageItems;
    for (var pi = 0; pi < myPageItems.length; p++)
    ]]]if (myPageItems[pi] == myFrame)
    ]]]]return app.documents[0].pages[p];
    There's a another method to deal with frames in a group (or group of groups), which involves a recursive handler to keep looking at the parent of the parent, etc, but the one I use is flawed in certain circumstances so I use this one when reliability is important.

  • Insert in master page, the first page and the last page of my article...

    I need insert in the master page, the first page and the last page of my article... (Indesign CS3-4)
    Is this possible ????
    Thanks for read me...

    Marcos Suárez wrote:
    I need insert in the master page, the first page and the last page of my article... (Indesign CS3-4)
    Insert WHAT ?
    robin
    www.adobescripts.com

  • Printing first page of a multipage document

    Can anyone tell me, when printing speads of a mutipage document (in my case a book), how to get the first page to print on the right hand side of the paper?
    At the moment all pages except the first one print normally (i.e. left and right hand pages side by side on a landscape A4 sheet). The fist page however prints centred on the sheet when it should be on the right.
    I can't add extra pages in front without messing the page numbering. At least I can but it's bothersome.
    I've looked through the print dialogue but can't find anything there that helps.
    Any other ideas?
    I am printing on a Canon inkjet out of ID CS3.

    That's the way it is....
    Add a completley blank page set to an even number and then start a new section and renumber the real first page.

  • Move to first page not working

    Am using DW CS3 and for some weird reason the "move to first
    page" under the recordset paging is NOT working. It doesn't do
    anything.
    I have the right text highlighted, the right recordset chosen
    and nothing.
    All the other paging options work just fine. The move to next
    page, the move to previous page and the move to last page ALL work.
    The first page option doesn't, no code is inserted.
    Should be putting in a link for that anchor text to move to
    the first record, but isn't.
    Any ideas? Anyone else with this?
    Thanks,
    Robert

    I f you are publishing to .mac, then this is often a caching issue, either at the server end or at your end, the nav bars seem to get messed up and time tends to heal (not what you wanted to hear).
    You could try clearing the cache in you browser, in Safari, go to Safari > Empty Cache.., also putting a ? at the end of the url in the address bar and then refreshing the page often does some good. Often you need to do both, more than once!
    Will
    1GHz G4, 15" PowerBook, Airport Network, 1G iPod Mini   Mac OS X (10.4.6)   www.willg4pb.com for iWeb tips

  • How do I display text only in the first page inXML Publisher

    Hi everybody,
    I've been reading so much, on the last two days, on this issue at this forum but I didn't get an answer. My problem is: In an invoices report some text and fields from the invoice header, (such as payment terms, bank details etc.), should be printed only in the first page of the invoice, (If the invoice has more than one page). These elements are not in the document header/footer but in the document body. That's why I think the different fist page of MS Word will not work. I tried also <? start@first-page:body ?>, with no success. Any idea, someone?
    Thanks,
    Shimon

    Hi,
    Did you find solution to your problem? I am facing same issue and I want to know how you solved it? It would be great help.
    Thank you.
    Regards,
    Rahul

  • How can I print only the first page of multiple PDF files at once in my PC?

    That is, without having to open each file individually.
    Thanks!

    Create an Action with the following JS command:
    this.print({bUI: false, nStart: 0});
    This will cause the first page of all the files you process with this Action to be sent to your default printer.
    If you need to specify more complex parameters, you'll need to use a more complex code...

  • How can i print all the tab pages not just the first page (tab)

    how can i print all the tab pages not just the first page (tab)

    You would need to do this programmatically. Here's one way:
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • Refresh First page after returning from a framed pop-up window

    HI Can anyone help me on this technical problem.
    I have got one mainpage and from there i'm calling a popup with two frames (left, right). At frame right i'm populating the tableview.
    So when i submit(button) in tableview(right), the table contents has to be replicated in the first page and the popup has to be closed. So far it has be done successfully.
    The problem is when i return to the first page the page is not getting <b> refreshed automatically</b>. FYI, i'm not using mvc for performance reasons.
    So i need your help on how to refresh the first page, after control passes from popup.
    Here is the code, that calls the popup window
    winvar=window.open("organization.htm", 'main','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');

    Hi Craig & Raja,
    Let me tell thanks for your response. But your valuable solutions are not working for me. Please, check this code and please let me know that any thing went wrong.
    Here is the code
    My main page is progress.htm
    ============================
    <script language = "javascript">
        function openOrgTree(){      
           var winvar;
           winvar=window.open("organization.htm", '<b>Main</b>','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');
      </script>
    <htmlb:inputField id          = "InputOrgPlan"
                            showHelp    = "X"
                            onValueHelp = "javascript:openOrgTree()" />
          <% if application->i_desc is not initial.%>
          <htmlb:tableView id              = "tvX"
                           headerVisible   = "false"
                           design          = "alternating"
                           visibleRowCount = "3"
                           fillUpEmptyRows = "true"
                           columnWrapping  = "false"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "MyEventRowSelection"
                           keyColumn       = "Text"
                           table           = "<%= application->i_desc %>"
                           iterator        = "<%= iterate %>" />
          <% endif. %>
          </td></tr>
    organization.htm (is the frames container)
    =========================================
      <!-- frames -->
    <frameset  rows="110%,*">
        <frameset  cols="40%,*" >
            <frame name="left" src="tree.htm" marginwidth="0" marginheight="0" scrolling="No" frameborder="0">
            <frame name="right" src="table.htm" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0">
    table.htm (right frame)
    ==========================
       function callSubmit()
         alert(parent.window.name);  
    // displays the name as "<b>Main</b>" which i gave at the time opening oraganization.htm
    //        parent.window.opener.refresh();
    // window.opener.location.href = window.opener.location.href ;
             window.opener.refresh();
             parent.close(); // to close the popup
    // all of the above are not working
       </script>
      <htmlb:page onLoad = "callSubmit()">
    <htmlb:button id            = "submitbutton"
                        onClick       = "myButtonClick"
                        onClientClick = "callSubmit()"
                        width         = "10"
                        text          = "Submit" />
    i need onClick to populate the internal table and onClientClick to refresh the opener.
    if event->id = 'submitbutton'.
          refresh application->i_desc.
          application->i_desc = i_desc.
    Regards
    Swaroop

  • Values not getting displayed from first page of the report.

    Values in the report is getting displayed from second page.
    First page in the report only displaying the report title and column names.
    Secone page onwards, data and column names are generated.
    Can any one please help me, with the cause of the problem.

    what reporting tool?
    Interactive Reporting
    Financial Reporting

  • Why do text variables using Running Header character style translate forced returns as a word space in the running head on the first page but close up the space on subsequent pages?

    In an InDesign document that requires 3 different Chapter head paragraph styles (to cope with differrent length headings) I've set up the running heads on the master page with a text variable using the Running header (character style) option. The character style I've assigned to this is an empty character style that is applied to all 3 chapter head paragraph styles.
    Some chapter heads require a forced line break, so that the line breaks are aethesically pleasing. On the first page the text variable translates this forced line break as a word space in the running head, but on subsequent pages it ignores the forced line break. This means that if you have a word space before the forced line break, on the first page you get a double word space and on subsequent pages the running head sets correctly with a single word space. But if you remove the word space before the forced line break in the chapter head text, the first running head sets correctly with forced line break interpreted as a single word space, but on subsequest pages the space is closed up.
    This only seems to be a problem when the character style option is used for header text variables. If a paragraph style is used the forrced line break is interpreted as a a single word space in all instances, both on the foirst page and subsequent pages.
    This would appear to be a bug in how text variables are applied when using the Running header (character style) option. I can't see any other reason why the text variable would beheave differently on the first page and on subsequent pages. There is only one master page, so it isn't a case of their being an error between a main master page and a chapter opener master page.
    Does anyone have any solutionss, or know if this problem has been fixed in subsequent releases of InDesign (I'm using CS6 ID version 8.0)
    Thanks

    Ask in the ID forum...
    Mylenium

  • Issue with auto-play slideshow on the cover/first page

    I'm finding a strange problem in a project that's about to ship.
    Our "cover" is a full-screen slideshow (really some type animation) that is a simple slideshow through states. It look great in the Content Viewer.
    When we build the app in Viewer Builder, the slideshow does not play. Just sits on the first image.
    I know there's an issue about HTML "auto playing" on the first page (that is, you can't). But didn't think that applied to dps slideshows.
    Has anyone seen this issue? Any solutions?
    Thanks

    Here's the panel.
    Interestingly, if we build an app with only the cover (this page), it works. Building it with all articles makes it not work.
    The 'play in reverse' was an attempt to fix this. Did not help or hinder.
    Thanks

  • In two page view preview shows the first page on its own

    In two page view preview shows the first page on its own. I have recently downloaded an ebook which has image based tutorials and the pages are in such a way that pages 3 and 4 should be seen next to each other. Preview seems to want to have pages 1 on its own therefore making this rather difficult. Any help on resolving this issue would be appreciated.

    Try selecting the first page, and then from the "Edit" menu select "insert blank page". This should put a blank page at the beginning of the document, shifting all pages down one and putting them in the order you want for your display.

  • How do I get back to the first page of an application when I'm in the middle of it?

    I'm sure there's an easy answer for this, but I can't find it.  If I'm in the middle of an application, say iBook, and I want to get back to the first page of that application, how do I do it?  When I tap on HOME, I go back to the home page with all the icons.  I want to go to another page within the application I'm in?  I've been stuck in iBook for an hour.....I don't know how to get back to the first page in that application.  Thanks.

    The shelves should show the ibooks that you've got in the app i.e. your downloaded purchases from the iBookstore. At the top of the shelves there should also be a Store button (for browsing, purchasing, re-downloading books from the iBookstore), and Collections (where any PDFs that you've synced/copied into the app go).
    There is a chapter on the iBooks app in the manual, which can be downloaded from here http://support.apple.com/manuals/#ipad

  • Why does my bank statement open up in Quicktime Player with only the first page visible?

    This month I tried to open my bank statement as usual, and it opened in Quicktime Player.  The first page of the statement displays, but I can not scroll to the next pages.  I have tested downloading other items, and they downloaded as usual.  I don't use Quicktime, and I tried hiding it.  But each time I try to see my statement, it comes up again. 

    Hi Lynda,
    What file format is your bank statement in? Is it a PDF or in an .xls/.csv file format? It sounds like the program-to-file association has gotten messed up on the file. If you right-click (or ctrl-click) on the file then:
    - Get Info
    - Open with
    If it's a .pdf then you'll want to associate the file with Preview (or whatever PDF viewer you use). If it's a different file format you'll want to associate it with the program that you typically use for that file type.

Maybe you are looking for

  • IPod touch 2nd gen will not open in iTunes. Ideas?

    I upgrading the latest version of iTunes and I went to sync my iPod touch 2nd gen to get my latest podcasts and it would not sync or even recognize in iTunes. My PC recognizes the drive. But iTunes is a no go. I suspected it was just the latest versi

  • IronPort WSA S170 and Context directory agent

    Hello people and experts, I need your consultation regarding IronPort and CDA deployment. I couldn't find any information in internet... So my question is - if IronPort is AD domain member and Explicit forward proxy is planned to be used. Do I need C

  • Challenge for all of you with SL and printer issues

    I have an iMac with an Epson Stylus C-88+. Let's try an experiment. Pick a sample web page, in the Title Bar, go to File/Print, or Command-P. Go to the lower left hand corner, you have the purple question, then"PDF"/ Click/ "Save as PDF"/ Click. You

  • Access COM component in Java

    I am trying to access a COM component in Java. I want to bring up the Windows clock (which I understand is a component) and call it up from within my code. I just need it to appear - not do anything specific. I did post this question and one person s

  • Changing the Print parameters through JSP

    Hi, I need to allow the user to take a printout of the HTML page, contents of this page are passed from a JSP page, is there a way 1. I can control the SIZE Header and the footer and 2. Printout SHOULD NOT have the following      1) Form name,      2