[CS4/JS] Problem moving pages -- they're losing their connections to sections

I've encountered something I think might be a bug in InDesign.  It's actually not strictly a scripting problem -- I discovered it while debugging a script, but it happens in the user interface as well.  The easiest way for me to explain it is with a script, though.
The problem is this:  When you have two pages that have the same page number but different page number styles, and one of them is the first page of the document, and they're both the beginning of their own sections (and continueNumbering is off for both), they should stay the way they are when you move them, but they don't.  The page that was first and is now second loses its connection to its section, and becomes an automatic page number following the first page.
The following script will set up just such a document and illustrate the problem:
// Start a new document with two pages, each the start of its own section.
// They are each page 1, but one of them is numbered with Arabic numerals,
// the other with lower-case Latin letters.
var doc = app.documents.add();
var page1 = doc.pages[0];
var section1 = page1.appliedSection;
section1.continueNumbering = false;
section1.pageNumberStart = 1;
section1.pageNumberStyle = PageNumberStyle.ARABIC;
var pageA = doc.pages.add(LocationOptions.AT_END);
var sectionA = doc.sections.add (pageA);
sectionA.continueNumbering = false;
sectionA.pageNumberStart = 1;
sectionA.pageNumberStyle = PageNumberStyle.LOWER_LETTERS;
alert ("At this point we should have a document with two pages, " +
          "numbered 1 and a.  The page numbers are fixed, " +
          "so that if we move them, they should stay 1 and a.");
page1.move(LocationOptions.AFTER, pageA);
alert ("Now look at what happened:  we did a simple " +
          "page1.move(LocationOptions.AFTER, pageA); " +
          "and page1 lost its section and is " +
          "being automatically numbered after pageA.");
I realize this is sort of an obscure scenario, but I'm trying to write a script that takes pages from different documents and fixes the page numbers (i.e., makes them all the beginnings of their own sections and turns off continueNumbering) and puts them together in one new document in order of page number.  I want it to cover all possible situations, so it might as well cover the one I'm describing above.

hello marc,
thanks for your answer.
In my anchoredObjectSettings I only set the Option Keep Within Top/Bottom Column Boundaries (as true).
That's why the object is moved until a certain point and then the movement has no effect.
In fact the object is moved and the overlapping is compensated many times.
if I have look into the indesign document while running the script, the object in fact moves.
for this i don't see a reason why the geometricbounds do not change because of this?
thanks.
franzi_ska

Similar Messages

  • The HP (USB connected) and Epson (wireless) printers keep losing their connection with my Mac mini.  I have to physically disconnect the HP and then reconnect for the Mac to find it.  Turning off the wireless Epson doesn't work.  All software is updated.

    My HP (USB connected) and Epson (wireless) printers keep losing their connection with my Mac mini.  I have to physically disconnect the HP and then reconnect for the Mac to find it.  Turning off the wireless Epson doesn't resolve anything.  All software/drivers have been updated.

    My HP (USB connected) and Epson (wireless) printers keep losing their connection with my Mac mini.  I have to physically disconnect the HP and then reconnect for the Mac to find it.  Turning off the wireless Epson doesn't resolve anything.  All software/drivers have been updated.

  • Problem moving pages within a pdf

    I have been working with a fairly large document (around 1500 pages) and it is impossible to re-order the pages.  An example: I will drag page 12 to page 2, and when I release the mouse button, the page will be at page 18.  Inserting from a file leads to the same results.  I will insert pages from the insert file dialog, set it to "First" (meaning I want the pages at the beginning of the document), and the pages will be inserted at page 10 or so.  I am using Acrobat X Pro.  I would greatly appreciate any help with this.

    I presume you are using the Pages Pane in the Navigation Panel for your page dragging.
    With such a large PDF, you may also want to Embed the Thumbnails at least while you are moving the pages around.  This will help to speed up the 'refresh' of the pages in the Pane.
    Expand the Pages Pane, click on the Gears icon and select Embed All Page Thumbnails.
    Since this does increase the file size to the PDF, once you are finished, go back to the Gears and select Remove Embedded Page Thumbnails and then save.
    In addition to the possible corruption, the location in where the pages are ending up makes me wonder about this possibility, too.
    Hope that helps.

  • No matter what website i go to mozilla goes straight to problem loading page. i clearly have internet connection but it won't go to any websites. what's wrong with it and what should i do?

    i had this problem before. i went to the IT department in my school and they fixed but i dont know how. now it's happening again and i don't know what to do. i've been using internet explorer so i do have internet connection, but i mozilla is way faster and more reliable so i really need this problem to get fixed please and thank you.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Is anyone else Losing their connection to iChat?

    so i keep loosing my connection to ichat and it says "the connection to the hose was unexpectedly lost".
    am i the only one getting this?

    Hi
    First thing to try is to change the log-in port, as
    follows:
    1 Log out of AIM (in iChat menu), then
    2 iChat > preferences > accounts > server settings
    3 Change 5190 to 443
    4 Log back into AIM
    Let us know if you still have problem.
    Dave
    this hasn't helped.
    i did finally get on by creating a new aim account. i then reverted to my old account, but all my buddies had disappeared, so i re-added them. i can get on now. however, on my work machine (which i didn't change), i still can't get on. i keep getting the error Auth:DbSendError.

  • TS1398 My ipad3 seems to have connection issues. It is wifi only but keeps losing the connection and is really slow in loading pages - a bit like dial-up speed!  My iPhone 4s and daughters'  ipad2 have no problems at all. Any ideas anyone?

    My ipad3 seems to have connection issues. It is wifi only but keeps losing the connection and is really slow in loading pages - a bit like dial-up speed!  My iPhone 4s and daughters'  ipad2 have no problems at all. Any ideas anyone?

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Im having problems with my Kids facetime accounts that seem to be because they are both using my itunes and there are conflicts with multiple email addresses? Is it possible to now set the kids up with their own accounts without losing their apps etc

    Hi All,
    I have my kids using iTunes via thier ipods etc through my own account and this hase been the case for some time?
    This has started to cause issues lately with imessaging and facetime, as there seems to be a limit on email addresses that can be associated with one account?
    I wonder if I would be best off setting the kids up with their own accounts, but want to be able to do this without them losing their existing apps, music etc?
    Is this possible, if so is there a simple process cos I can seem to find anything relating to this?
    many thanks, Jim

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • I am having a problem moving files from a iMac  in location mac in another location.  I have tried using Dropbox and the Public folder in the i disc.  When I drag the files into dropbox they become alias' and I can't open them at the other end beca

    I am having a problem moving files from an imac in one location to an imac inanother location.  I have tried using Dropbox which is installed in both locations but when i drad a file ino yhe app it becomes an alias.  When I get to the other location it says I can't open the file because the " original application that created it is not present".  This is despite the fact that the app that created both files is installed in both computers.  If I use the Public folder in the idisc, when I get to the other location the file isn't there.  Am I forgetting to turn something on or off?  Should I manually sync the Public folder and if so how? Thanks
    Message was edited by: stephenfromdelray beach

    So now that's two of us.  Hopefully, someone has an answer. 

  • Why did moving pages to a different site cause scary glitches?

    I'm an advanced iWeb (3.0.4) user with two iWeb sites: the OLD one, and the NEW one. I built all-new pages for the new site, but I dragged in two MOVED pages from the old site. Once I did this, the site will not publish. "Publish Error: an unknown error occured."
    There's a few other symptoms:
    -I cannot move the moved pages back to the old site. When I try, the blue "drag/drop" selection box freezes, and the pages do not drop where I drag them.
    -I cannot delete the moved pages. When I click delete, nothing happens.
    -When I click on the moved pages to view or edit them, they do not load. The iWeb window stays blank.
    -The site will not publish to MobileMe or a local folder.
    -The old site still publishes.
    These solutions have not worked:
    -Deleting the .plist and rebooting / clearing the cache.
    -Moving the Domain file, creating a new blank site, deleting the new blank site, replacing the Domain file.
    -Transferring the Domain file to another Mac and publishing from the new Mac.
    I wish I could sit down with an iWeb expert and sort this out. Any tips from you guys?

    Do you have a  backup copy of the Domain.sites2 file you can revert to?
    Can you delete items from the two moved pages (make a backup copy of the domain file first)?  If you can try deleting an item and try publishing to a folder.  Keep that up till you can publish. Then open the backup copy and delete that last item and see if you can publish. If it's just one item that's causing the problem this might be one way to isolate it.
    OT

  • Problem with Pages on the iPad 2.

    Hi all,
    I have been having a strange problem with Pages on the iPad that I hope someone can find a solution for.
    As a writer, I find that Pages on the iPad is a very good solution to my problem of needing something small and light to transport around, whilst still allowing me to do some serious writing.  I use the Apple 3 battery bluetooth keyboard, and this gives me a superb working solution.
    I started using the iPad 2 to do my second book and for the first 40,000 words everything was fine.  But as I started going back and forth with the cursor keys, editing passages in the book, I noticed that the cursor position did not match up with the I beam cursor on screen.  As it transitioned between pages it would loose it's corresponding position and the entry point for new text could be up to six characters in either direction.
    Now this is not a problem if you enter a new page, as there is nothing beyond it, but in the majority of cases it is a major problem when going back over your work and editing it.  I have to manually reset the start position of every new page so as to garantee the typing will go where I want it to.
    Now I thought at first this was something to do with Bluetooth keyboard, but after using the onscreen keyboard and the find and replace function, I have noticed that it loses it's position in the document in a similar way.  I have included a screen shot of it finding a problem I was searching for.  In this case it is ", and" to be replaced with "and," or "and".  Clearly in the image you can see that it is not happy and is not selecting the right things, if I replace it will replace exactly what is selected.
    Has anyone else seen this problem.  It seems to happen with large or small documents and I think that this is a fundamental problem with Pages on the iPad.  Seeing as I can't get Apple to acknowledge this I brought it here for everyone else to check out.  If we get enough voices on this, then we can make change happen.

    That's right Br Abdullah, I'm finding the same problem with my itune Arabic library that I synced to iBooks version 1.5! As you say the pages are not arranged correctly.
    The other problem that I'm finding is that the highlights &amp; notes that i have made on the books on a previous version of ibooks, when synced with ibooks version 1.5, they are scattered everywhere, and sometimes in areas where there are no texts.
    I left a message on the report a bug section of iBooks on the app store, and I contacted them on their feedback of apple product issues. I don't know what else we can do. It seems that no one is listening to us. I'm Dissapointed that I upgraded my iBooks version to 1.5; I was really looking forward to reading on my new iPhone 4S (on iBooks)!
    What else can we do to get our concerns heared? Somebody? Anybody?

  • I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!

    I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!
    I have created a navigation system on the master pages and set the presentation to links only mode. I also have other links scattered throughout the program, like a linkable table of contents, etc. Some of them work, some of them don't. Not sure why. Anyone out there having similar issues? Or have any idea on how I can solve this issue? Any help would be appreciated!
    Thanks!

    Links should not create any problems in Keynote.  If they are set up correctly on text, the text will be underlined. Objects that have links will have a curved arrow bottom right, if you click the arrow a popup will display the link information.
    Try this repair for Keynote,  ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in.
    4  
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive

    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions

    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store
    let us know if this helped

  • Hello Apple community... I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.

    I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.  When I drag the doc in a line would show up in the past, and if I went above th eline all was good.  It doesn't have a line, and no matter what I try I am having no success.
    Please help!

    According to an Apple Support article, unless there are unforeseen issues
    in file ownership or permissions, the combining of .PDFs should be simple.
    •OS X: Combining PDF documents using Preview - Apple Support
    There are a few variable and similar methods, some change with version
    of OS X in use; some vintage OS X may vary a little in the process...
    A variety of similar topics appear in search results, with terms:
    " mac os x combine pdf into one " such as this page shows...
    https://www.google.com/?gws_rd=ssl#q=mac%20os%20x%20combine%20pdf%20into%20one
    If the system is older than Mavericks there may be other methods to try.
    Suggestions are among linked results in the search. I see a few fair ones.
    •Here's another that offers generally similar suggestions...*  this info looks OK, extra links, do not:
    http://osxdaily.com/2014/06/27/how-to-join-multiple-pdf-files-into-a-single-pdf- document-in-mac-os-x/
    { note: avoid clicking on links to products in * this ^ page, since they likely will not help & may be adware prone }
    If you have a problem after trying other methods, based on an OS X
    your computer is running, post back with more exact information...
    Good luck & happy computing!
    edited

  • When exporting files to web pages Aperture keeping losing files, so for instance, if I choose to export 600 images to a new web page, it might do 524 images but not the full 600. I've tried resetting Aperture, it's the latest version etc etc. Help please!

    If anyone can help me with this I would be seriously grateful.
    When exporting mutliple files to web pages Aperture keeping losing files, so for instance, if I choose to export 600 images to a new web page, it might make 524 pages but not the full 600. I've tried resetting Aperture and its persmission and am using the latest version of 3.
    I have 3600 images which I need to upload as sublfolders, each with their own URL and at the moment Aperture is dropping of anything from 1 to 90 images.
    This is critical as people need to see each and every on of these images online. So if a file has 600 photos in it, Aperture should make a URL with 600 full image pages. And this is what it's not doing. On small files, say 30 or so it seems to work well, it's when it gets to more than that the problem starts.
    I've used Aperture in the past under previous versions and not had this problem.
    Any help would be great.
    Thanks.
    Bob.

    Hi Jack,
    Thanks for responding (as it seems as though no one else has been able to provide any insight as of yet)! Not sure if you saw my recent post, but the version of Aperture on the 2008 MacBook has been upgraded to 3.1.2 (not sure how; I bought it in 2009, but only have OS X 10.5.8... which apparently can't house 3.1.2 of Aperture, but hey, like many other anomalies i'm encountering, I'm no longer surprised!). I am unable to upgrade it any further, as it warns me that my OS X does not fit the requirements. I exported the projects as libraries; however, like I posted before, apparently these are from too old of a version for the new Aperture (3.3.1) to handle and import.
    It's getting to the point where I'd almost pay to upgrade the OS X on my previous MacBook (10.5.8) to something newer in order to THEN update Aperture to a newer version; however, my previous MacBook simply cannot handle this (the specs are awful -- hence my decision to save up and upgrade to the newest MBP with Retina).
    I've spent hours upon hours transferring files, libraries as projects, previews, versions, even masters (though, apparently some of them aren't accessible?) with no luck. I've rebuilt the library and reprocessed everything. And this is all after having to return one MBP already since Aperture 3.3.1 is glitch-y as it is, and froze everything for having a "managed library". So, now that I know that I have to deal with a referenced library in Aperture... I just need to actually transfer my previous library to my new one (hopefully WITH adjustments since these are years worth of photos and work).
    Again, any help is appreciated. I've lost enough sleep, time, and vision health over this at this point.
    Also, I know Migration Assistant is an option, I was told that it wouldn't work properly anyway because of the different operating systems, and the potential for problems.

  • Alternate layout created when moving pages from one  document to another

    I'm using CC on Windows 7 -  I have 2 documents  that I want  to merge and make into 1 [I know people will want to know why I would want to do this -  each document is  the result of a different data merge - data merge can only handle one master page - so I have  2  datamerges - 2 files - and just need to  merge the 2 files]
    This used to work beautifully in  ID 5.5 - now when I   use the pages panel to move the pages to  the other document - it creates an alternate layout - it is then very difficult for me to  interlace alternating  pages - - I use dot be able to just move the pages into place - but with eh 2 layouts it is behaving differently and in a way I do not understand. Is there any way I can get around this? or avoid the alternate layout and just have one. The 2 page sizes are identical so it is not a problem of  varying size - the paragraph styles are all the same as well. I have tried to delete the alternating style but it  will delete all the pages as well.
    Thanks

    Maybe its time for me to Replace my Preferences, because I also have 8.0.2, and I tried the same thing with two new documents based on the same preset - it still made an alternate layout. When the moved page is placed in the middle of several pages (say - after page 2, of 6 pages) all the pages after the inserted one become part of the new alternate layout. In this example, I had a six-page document, and moved one page of the other identical document to After Page 3 Here's the result

  • Moving pages and page numbers running on

    When moving pages from one document to another (using the move pages feature) the page numbers aren't running in order. The document that I add to the end of the previous document starts at page 1.
    They used to run in order in CS5, so first document would end at 28 and new document would start at 29, is this a setting I need to change?

    Sounds like your previous documetn was part of a Book, and the Book was controlling the numbering, OR you set the numbering and section options on the first page of each file to start onthe number of your choice.
    When you move pages to a new file, that file will start with page 1 by default, and it's up to you to change it if you need to.

Maybe you are looking for

  • Problem when querying OLAP for Value based hierarchy

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine the strange part is if I only put one value, it will work perfectly for example if I put only 1 value for that value base hierarchy like CF_HIER::

  • SQLDeveloper problem in linux

    I have installed sqldev in ubuntu. The instalation was perfect but when i start it. it opens but i cannot do anything i can press button etc even i can create files but just show me a blue window with the menus. what should i do ?

  • How to recover missing videos from Photo Booth?

    I did a video recording for my interview (for work purposes) and suddenly my Macbook freezes and then the Photo Booth app closed automatically and when I check the Photo booth library, the video isn't there. Can I retrieve it back??

  • Backdoor number for Macy's Amex

    Does anyone have a backdoor number for Macy's/Amex... Family member submitted fraud and faxed them the release... And they still are trying to collect on it though when he calls, its in process.. in fact they already have submitted to his CR... First

  • Bluetooth hands free for 3G - where is the Apple earbud?

    I bought an apple iphone earbud handsfree and loved it... i wanted to replace it after i lost it recently. Amazed that i can't find any trace of it... can anyone tell me where i can get a replacement? I see there are still charger devices for sale bu