Need help on Page break to open all the script

I have trouble making this script works on all open documents. Works only when there is a single open document.

var selectedPage = 1

for (myCounter = app.documents.length; myCounter > 0; myCounter-) {}

myDoc = app.documents.item(myCounter-1);

page = myDoc.pages.item (selectedPage - 1);

app.activeWindow.activePage = page;

}

I get the error "query failed because object is from another document.

Hello

Try this...

var selectedPage = 1
for(myCounter = app.documents.length; myCounter > 0; myCounter--)
    myDoc = app.documents.item(myCounter-1);
    page = myDoc.pages.item(selectedPage - 1);
    app.activeDocument=myDoc;
    myDoc.layoutWindows[0].activePage =page;
}

Concerning

Tags: InDesign

Similar Questions

  • New to pix, need help with "debug access list of all the" command

    I have a pix 515 v6.3. I am tring to use then "debug access list of all the" command to see what traffic is stopped by my access list. However, I don't get any output. I turn execution of the command, but nothing happens. Other debug commands give the console. Perhaps, I do not understand what "debug to access list of all the" is used for. Any help that can be provided would be greatly appreciated.

    Tim

    Also try following the commands of logging

    LOGG on

    LOGG buff 7

    term Lun

    M.

  • I installed 5.6.2 Pages but all my old documents will open with ' 08 how can I delete the Pages ' 08 and update all the old documents

    I installed 5.6.2 Pages but all my old documents will open with ' 08 v.3.03 How can I remove the Pages ' 08 and update all the old documents

    5 pages is located in your Applications folder.

    Pages ' 08 is located in your Applications/iWork ' 08 folder.

    If you open your old documents Pages ' 08 with 5 Pages it will convert and if not damage, remove a large number of useful features.

    You will probably regret upgrading to 5 Pages which Apple has made extremely inconsistent and keeps changing its file format.

    Peter

  • I can't open all the Web sites in firefox(version 25), its long loading time, help please

    I can't open all the Web sites in firefox(version 25), its long loading time, help please

    Hello, normally these problems are caused by a security/firewall software which does not recognize and therefore blocks the new versions of firefox: solve connection problems to websites after Firefox update

  • TOSHIBA AC100 - browser opens all the 'https' pages

    How I can resovle this problem?
    http://youtu.be/-zGS-J4oxBM
    http://youtu.be/vQJyzbAmr3g

    Browser opens all the 'https' pages and I can't add my Google account.

    Time is correct.

    Maybe you should check out the HyperText Transfer Protocol Secure (https) option in the browser settings
    Check if cookies should be accepted.

  • I need help! I try to open my PDF but I get this message on my Macbook Pro! "Before you display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser."

    I need help! I try to open my PDF but I get this message on my Macbook Pro! "Before you display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser." What should I do?

    Do exactly what the message says, and it will go away.

  • Office randomly freezes, can't open all the desktop icons

    Original title: desktop windows 7

    Windows 7 64-bit. Office randomly freezes cannot open all the icons of the Office dies just.

    I need to restart the pc to make it work again thanks for any help you guys can come up with.

    Jim.

    Jim

    In Windows 7, use Ctrl + Shift + Esc instead of Ctrl + Alt + Delete. It lets you in the Manager of tasks more quickly. Select Task Manager, performance, resource monitor tab and tab memory. What are the numbers for reserved equipment, in use, modification, sleep and free?

    Is your Windows 7 32-bit or 64-bit? The amount of RAM is installed?

    Restart your computer and wait 30 minutes for the system to operate before you download information. When the review much, not Event Viewer log files all problems show in the period immediately after the computer has booted.

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. Normal mode preferred report. Please say if the report was obtained in safe mode. If the report is in one language other than English, please indicate the language.

    Please download and share with everyone a new copy of your log System of your event viewer on your disc one and post a link here. It allows to avoid confusion if you delete all previous copies of the log files of your OneDrive.

    To access the system, log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window, expand Windows logs and select System. Place the cursor on the system, select the Action in the Menu and record all events like (the evtx default file type) and give a name to the file. Do not offer not filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    For assistance OneDrive see paragraph 9.3:
    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

  • MacBook air crashes, I'm unable to open all the applications but Safari.

    MacBook air crashes, I'm unable to open all the applications but Safari. I can still access the app store to download some antivirus software.  I downloaded AVG hoping it might cure the problem, unfortunately it made it worse.  I got this macbook for about 3 years and I have not had problems.  I recently opened safari on another user and he came with a message saying that you have now received a virus.  I don't know what to do, or how I can fix this problem.  The office is constantly freezing as well, I'm out of options!

    Determine if you can start up your Mac in 'safe' Mode. Read how here: OS X El Capitan: safe mode. If you find that the document confusing or difficult to follow, please write back for instructions.

    After you have determined how your Mac works in 'Safe' Mode, restart normally.

    Regarding your other concerns:

    I recently opened safari on another user and he came with a message saying that you have now received a virus.

    These messages are false. It is a very common scam. Read about it here: Phony 'technical support' / 'ransomware' popups and web pages


    I downloaded AVG hoping it might cure the problem, unfortunately it made it worse.

    It is to be expected. Don't waste your time with things. "AVG" can be particularly difficult to uninstall, a fact that I learned to evaluate myself. The problem is that its uninstall instructions do not work. I got by deletion of the Mac and restore its contents from a Time Machine backup. You have a backup?

  • How can I get the new tab to open all the way to the right when I use the link open in a new tab?

    How can I get the new tab to open all the way to the right of the tabs old when I use the link open in a new tab?

    Set the pref browser.tabs.insertRelatedAfterCurrent false on the subject: config page.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    You can use the filter at the top bar of the on: page config to more easily spot a pref.

  • I can't open all the files on my pc

    I can't open all the files on my pc. I get a pop up that says windows can not the path of the device spec acess or file.you possibly not authorized to acess the element

    See If trojan remover help. Install the update / click scan. Then select all the options under the Tools menu to reset everything. If this does not in the normal windows try safe mode / networking (restart press / hold down F8). Then select the

  • In Microsoft 2010 how you open all the worksheets at the same time in a folder? 'Open all' is not an option on right click.

    I need to open a month with a value of Excel spreadsheets in a folder. The only way I can understand them open is to open one at a time. My old version of Microsoft has an option 'open all' when I highlighted all the & right click. This is not an option in the 2010 version. I can't imagine that this is not an option in the latest version. Am I missing something?

    Open Excel, and then click file and 'open '. Navigate to the folder containing your Excel files, and select all the worksheets, that you want to open. You can drag a rectangle around them, use control + click, or use SHIFT + click to select more than one. And then click Open. It should open all the excel files.

  • shortcut to open all the triangles display in the historic Safari menu

    When in the ' to see the ' in safari my complete story collapsed in daily triangles to display... y at - it a shortcut to open all the triangles display? Click option does not work.

    rscottd wrote:

    When in the ' to see the ' in safari my complete story collapsed in daily triangles to display... y at - it a shortcut to open all the triangles display? Click option does not work.

    I don't know any way to do it.

    Feedback: Apple http://www.apple.com/feedback/

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • I am using Windows XP Pro SP3. IE8 or FF8 can open all the links that appear in my subscription newsletters.

    original title: links in e-mail newsletters don't work

    I am using Windows XP Pro SP3. IE8 or FF8 can open all the links that appear in my subscription newsletters. The message I get is:

    Firefox can't establish a connection to the server...

    Because this happens with both browsers, I suspect that some settings in Windows is the origin of the problem - maybe an update. Everyone knows about this type of behavior? Someone at - it suggestions for me?

    Hello

    This information should be useful.

    1. the HOSTS file would have an impact on all browsers. If you do not deliberately use the HOSTS file to block some websites, run the FixIt in this article to reset (clear on) the HOSTS file.
    How can I reset the default Hosts file? :
    http://support.Microsoft.com/kb/972034

    2 key is only, but go to Internet Options > privacy and try a cookie of low value or accept all.

    3. from security on the IE command bar > InPrivate filtering settings, disable filtering.
    Always safe > Filter SmartScreen > disable the SmartScreen filter.

    4 disable third-party security programs (antivirus, antispyware, firewall, etc.) * just long enough * to test some links.

    5. similar to the #3, but more in depth...
    The clean boot troubleshooting, try.
    331769-how to perform a procedure to clean boot (XP & Vista)
    http://support.Microsoft.com/kb/331796

    Don

  • I just downloaded updates for 2014 PS on mac OS 10.7.5. Now, he opens all the images - error message cannot open because the open parts are incorrect?

    I just downloaded updates for 2014 PS on mac OS 10.7.5. Now, he opens all the images - error message cannot open because the open parts are incorrect?

    Hi Akash.

    Download Installer Camera Raw and it seems to have solved the problem.

    Thanks for your time.

    Concerning

    Peter DeBeer

Maybe you are looking for