Pages stuck together, after moving to another document

I wrote an applescript script that copies the pages from multiple documents in a single document. All pages of all ducuments are set on shuffle and all spread also.

For some bizzare reason when pages are copied to the new document, they all stick to a spread, and I have to manually dismantle them.

I searched around and can't see if I'm doing something wrong or if there is a bug in InDesign, I need to report. I tried this script in CS5 and CS6.

Appreciate any input.

Here is the code:

tell application "Adobe InDesign CS5"
    set AppleScript's text item delimiters to ""
    set mydocs to name of every document
    set MasterDoc to items of (choose from list mydocs with prompt "Select which document is the master document.")
    set MasterDoc to MasterDoc as string
    
    set master_hight to page height of document preferences of document MasterDoc
    set master_width to page width of document preferences of document MasterDoc
    
    set thesedocs to mydocs
    set mydocs to {}
    repeat with i in thesedocs
        set i to i as string
        if i ≠ MasterDoc then
            set end of mydocs to i
        end if
    end repeat
    
    set Docstomerge to items of (choose from list mydocs with prompt "Select which documents you want to merge into the Master Document." with multiple selections allowed)
    
    set Docstomerge to my |sortlist|(Docstomerge)
    set mydoccount to 1
    repeat with this_doc in Docstomerge
        set myName to name of document this_doc
        set AppleScript's text item delimiters to "."
        set myName to text items 1 through -2 of myName as string
        set AppleScript's text item delimiters to ""
        set myName to myName as string
        
        set myPages to pages of document this_doc
        
        
        
        set aPages to duplicate every page of document this_doc to after last page of document MasterDoc
        set myBookMarkPage to item 1 of aPages
        
        tell document MasterDoc
            
            set myPageDest to make new hyperlink page destination with properties {destination page:myBookMarkPage, name:(("doc" & mydoccount) as string)}
            make new bookmark with properties {destination:myPageDest, name:myName}
        end tell
            
        close document this_doc saving no
        
        set mydoccount to mydoccount + 1
    end repeat
    display dialog "The merge was successful!"
end tell

on |sortlist|(the_list)
    set old_delims to AppleScript's text item delimiters
    set AppleScript's text item delimiters to {ASCII character 10} -- always a linefeed
    set list_string to (the_list as string)
    set new_string to do shell script "echo " & quoted form of list_string & " | sort -f"
    set new_list to (paragraphs of new_string)
    set AppleScript's text item delimiters to old_delims
    return new_list
end |sortlist|

Hey Lev,

I just ex-athletes how I got around it

I added an extra page before duplicating the page size weird and then I removed the page with myPage.Remove)

more easy (course) as resizing

I think it should fix

Trevor

Tags: InDesign

Similar Questions

  • VM does not start after moving to another server

    Hi all

    After our production server is down with a motherboard broken, we install another server (different hwardware) and installed vSphere 5.1. Existing virtual machines (database) (origin server) are on a raid (two drives raid 1) controller. We installed the RAID drivers in vSphere to make the database accessible (Areca RAID controller). Then, from the "Configuration" tab we opened the VM (browse the database) of the databases of the existing virtual machine, rightclickt to the servername.vmx folder and choose "add to the inventory. After that, the VM are added to the inventory of the VM client. The first time, we started the virtual machine, he asked if the virtual machine has been moved or copied. Because we did not know the correct answer, we choose "copied". He mentioned when we did not know the correct answer, choose "copy". After that, there are a lot of disk activity, but it ends in an error that it cannot find the vmdk file.

    Power on virtual machine

    MachineName.com

    [File]

    /vmfs/volumes/504dbfc2-bc271df0-F9B3-001e67339752/MachineName.COM_2.VMDK was not found.

    Then the boot stops and nothing happends.

    In the original situation all disk storage took place in the Bay of disks in the RAID controller, so there where no additional drives installed for storing the snapshot.

    Help, please!

    Have you added two virtual disks to the virtual machine? The _2 in the file name machinename.com_2.vmdk indicates usually that it's the second virtual disk on the virtual computer

  • Eth0 lost after moving to another computer

    Hello...

    Ubuntu 8.04 server performed a vmware fusion 1.1.1. Then I copied it on another computer with vmware fusion 2.0.

    Now the Ubuntu has lost its eth0. I tried upgrading the virtual machine of the menu item. No help.

    $ sudo /etc/init.d/networking restart

    eth0: ERROR while getting interface flags: no such device

    SIOCSIFADDR: No such device

    $ifconfig; shows only lo

    Any suggestions?

    When you run the virtual machine for the first time on the new system, we asked you if you moved or copied the VM.

    If so, what did answer? (Note: you must have answered "Moved").

  • HP 4500 ENVY: ENVY 4500 agreeing only not 61 cartridges after moving to another country

    Hello

    I bought my DESIRE to 4500 in Poland and at the time, I was using 301 cartridges.

    Now, I'm often traveling to the United States and already you have my printer it. I bought 61 cartridges

    as I read that they are good for 4500 WANT... but they do not work and printer says they are 'incompatible '.

    I have something about ready reset the device to another country, but don't have any idea how this can be done.

    Please help, because I don't want to buy a new pair of cartridges...

    Thank you

    Hello

    Please call the HP Technical Support for assistance.

    Printer must be regionalized to the USA area.

    This is a free support.

    Dial 1-800-474-6836

  • D1668: Cartridge for D1668 after moving to another country

    During his stay in China, I bought a D1668 printer and now I have moved to Europe and you need to buy the new ink but then I can't get cartridge 818 more so what should use?

    I tried with 300, but it didn't ' work.

    Or do I need to remove the printer

    Thanks for the reply, but unfortunately, during the call in support, that they could not help me then I was advised to try to buy China cartridges or buy a new printer, so I am considering buying a new printer and will defiantly NOT a HP since it has the kind of settings that makes it impossible to use in different countries.

  • Problem of jQuery in Dreamweaver after moving to another computer

    Hey guys, I made my first website with Dreamweaver, for my own media production company. Since I have a new computer that lightbox is not working properly, as it did on my old laptop. I just transferred my computer on my new Web site folder and have already checked every link, but I can't seem to find what is wrong. Please take a look at my problem: http://www.timperry.nl/Photos.html it seems to be a failure of the animation. All pointers are much apreciated!

    See you soon!

    Tim

    www.timperry.nl

    www.timperry.nl wrote:

    Since I have a new computer that lightbox is not working properly, as it did on my old laptop. I just transferred my computer on my new Web site folder and have already checked every link, but I can't seem to find what is wrong. Please take a look at my problem: http://www.timperry.nl/Photos.html it seems to be a failure of the animation. All pointers are much apreciated!

    You must have changed something since the transfer from one computer to the other. Any transfer would not have affected how the site works.

    Take a look on the below is the code which is located in thesection of your page, specifically the tag div {background-color: 000000 ;}} In my view, that has been added since you transferred it. If you delete this then animated works.

    Change this:

    To do this:

  • [JS] [Win7] [CS5] Moving pages to another document

    Hi guys,.

    I need to write a script for my company that merges the 3 documents together by selecting the needed pages in two of the three documents and moving them to the third document. Everything works fine and I have almost finished, but I can't find a way to move pages between documents.

    I also thought to simply copy everything on the necessary pages, but it does not work because each document has pages masters that are needed.

    Is anyone able to help me with the code necessary to select some Pages and move them to the end of another document?

    Any help would be greatly appreciated.

    Statixx91

    Statixx91 wrote:

    ...

    Everything works fine and I have almost finished, but I can't find a way to move pages between documents. I also thought to simply copy everything on the necessary pages, but it does not work because each document has pages masters that are needed.

    ...

    With no page moved and no pageItems covered - where is the point you called 'almost finished '?

    Example:

    (with 2 documents open - was last opened index = 0)

    var tarPage = app.documents[0].pages[0];
    app.documents[1].pages[0].duplicate(LocationOptions.AFTER, tarPage);
    

    It does double duty with 1st page of the 1st doc after 1st page od 2nd doc. similar work Move() method.

    In the case of masterPages you can move, but it's an open door to another story, I'm afraid.

    Jarek

  • When I m I look at an image or another document, after a time (short term) the screen go to the home page, how can I change the time if I don't have this problem?

    When I m I look at an image or another document, after a time (short term) the screen go to the home page, how can I change the time if I don't have this problem

    Hi, Romulo,

    This question should be validated in the Internet Explorer Forum.  Note the drop-down menus.

    http://answers.Microsoft.com/en-us/IE/Forum

    What sites you encounter the problem with?

    Make sure flash player is the current version

    http://www.Adobe.com/software/Flash/about/

    Check Shockwave player is the current version

    http://www.Adobe.com/Shockwave/welcome/

    Check the Java version

    http://Java.com/en/download/installed.jsp

    You check the internet connection

    If you are experiencing network connectivity problems in Internet Explorer, the first thing to do is to make sure that all cables are connected. Then open Network Diagnostics by right-clicking the network icon in the notification area, and then click diagnose and repair (if you use Windows Vista) or solve problems (if you use Windows 7).

    If the problem persists, see the following articles:

  • 'Create page vew' in another document, both documents are open

    In Adobe Acrobat 9 Pro, I want to create a link in the document 1 page view display a passage in 2, but after I created the link to the page, when you click on closing the document 1 link (the same thing happens in 10 Pro).

    This does not happen when I create a link "open a file", which translates the two files remain open (Yes, I select 'new window' which documents link).

    The only steps that I can see to follow are 'create link'-> select the page in the current or other document - to go to a Page view popup menu menu 'fixed '. After I do that the link is created, but when you click on the current document closes.

    Can I change the settings by default so that I can keep two open documents?

    It is possible to do it, Yes, but unfortunately only after you have created the link.

    Right click on the link (using Add or change the link), and then select Properties. Switch to the Actions tab and change the action "Go to a page in another document" which is there. Under 'Open In' select 'New window', and then click OK.

    Another thing you can do is to go to editing Documents - Preferences - and uncheck "open the cross-documents links in the same window.

    This means that if the link is configured to use the preferences of the user, the file will open in a new window. But if the link is set to open in the same window, it will not make a difference.

  • When I clik on a link to view another Web page or another document, a blank page appears (a single "point of png'). How can I solve this issue?

    The links are located on the emails I receive from authorized sources. When I click on the links to read the additional documents (another document) or display a picture, I get a blank page with a single point in the middle of the page. The tab header says it's an image (1 x 1 pixel) PNG. Any suggestions to fix this?

    Often, links to email in bulk are routed via a follow-up rather than service directly to its final destination. If you look at the address bar on the image page, it seems like one of these intermediaries rather than the page you expect to load? If you click on the address bar and press ENTER to retry the address, which does nothing?

    It is possible that the security software or security add-on kills a redirect from this intermediate page to the final destination. For example, I think the anti-banner Kaspersky functionality could do that.

  • HP LaserJet M2727 MFP Series PCL 6 - prints the blank page before and after each document in all cases

    HP LaserJet M2727 MFP Series PCL 6
    prints blank page before and after each document in all cases
    Does anyone else have this problem.

    It must be a preference setting, but I watched three times and CAP does not seem to determine what setting to change.

    See if they help you:

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?lang=en&cc=us&ObjectID=c01477176&prodTypeId=18972&prodSeriesId=3377075

    http://h30499.www3.HP.com/T5/printers-LaserJet/LaserJet-M2727-NF-can-I-suppress-blank-pages-with-this-printer/TD-p/2359555

    http://superuser.com/questions/315522/computer-prints-blank-pages-before-and-after-content

  • Restore 'My Documents' and 'Public records' alias after moved folder

    I moved my folder "Documents" of the user, as long as the public 'Documents' of my boot drive to a new drive for storage of files, I added.

    To do this, I opened the properties of the folder, the location tab and used the move... button to direct to the new location.

    After, my "Documents" library entry shows two folders 'Documents '.  Before the move, these folders have been listed with the alias "My Documents" and "Documents", which was a welcome orientation for the scope of these two files the same name.

    How to recreate these aliases at this point?

    Well, it's good. It is a common mistake for people to hurt set the new location as D:\ just for example, which means the entire root of the drive's "documents folder" (not exactly the end of the world, but it is difficult to undo and even harder to explain).  Anyway, you avoid this pitfall.

    The word "public" shown is not actually part of the name of the documents folder (not the 'my' on your own file).  It covers based on the presence of a text file inside the folder that told him of the special Act.  The folder itself is still called 'Documents' (complete actual path of C:\users\public\Documents), but the folder icon shows "Public Documents" because there is a file with hidden text in the file called desktop.ini telling him to see it.

    This part is pointing shell32 is just to find the English version of "Official Documents".  You could do what you want, such as:

    The folder looks like that it's called "Public things", but we call it actually still just 'Documents '.  The name is set according to the text of Desktop.ini.

    So in short, just to put this text file in the folder, mark it as a file system / hidden, and it will allow you to set the name of "presents itself as" to anything you want.

  • Why delete Adobe link action "go to a page in another document"?

    When you bind documents, you used to be able to link to another document and Adobe say what page to open.  Example: I want the document has a link to document B, but I want to document B to open the Page 2 instead of 1.  That option no longer exists under Actions, run menu option.  He was very helpful and I love him back.

    Read my instructions more carefully. When you add the action "Go to a page view" and you see the window floating in my answer above, then you must open the file you want to link to, navigate to the point that you want to link to and then click on"link" in this floating window.

    You should not add a separate order "open a file" because this is not going to work.

  • How to link to separate pages 3 together into one 3-page pdf document?

    How to link to separate pages 3 together into one 3-page pdf document?

    No way with just the free reader. can be done with Adobe Acrobat or the service Pack of PDF.

  • Calls missed, received and places not connected to IP Phone 7945 after you have moved to another site

    I moved to another site with my IP Phone 7945 G.  The new site has no backend for IP telephony infrastructure.  However, the IP phone still works, and works well with the same phone number.  However, the missed, received, and placed calls are is more connected.

    Here's my situation.  7942 configured with the "using AnyConnect SSL VPN to ASA".  I add the device to CallManager and connect to the network internal to get to the bottom of the configuration.  Then I connect to an external network to test the VPN.  So I don't think the assignment of VLANS is relevant to my situation.  The phone ends with an ASA to the assigned IP address, but never gets a TFTP address.  I have add our TFTP on the phone manually and missed/received/place calls started working.  This is to think it takes an option 150 added to the addresses that the SAA is distributing.

Maybe you are looking for

  • Qosmio X 300-no-work touch above keyboard

    After a manual install my touchscreen above the keyboard appears dark, but it lights up briefly when I touch, howerver activate any of the applications that are associated with the buttons on the Panel. What is missing here? Everything else in the sy

  • Satellite U400-119 integrated webcam malfunction

    Hello everyone, hope you can help me with this problem. I have a * Toshiba Satellite U400-119 * with built-in webcam which worked GREAT until one day she decided to give me a black screen everytime I turned on it. It's all quite normal, but instead o

  • OfficeJet 6600: Confusion of Fax-printer

    I had to get a new wireless router, and after a lot of trial and error, I've restored the network connection. But now my printer wwill send only fax - I can print anything.

  • Workstation guarantee

    I have a question! I bought HP Z230 and I want to upgrade my workstation with over-pants W5000 and OCZ RevoDrive, so I would like to ask you is it necessary to go to HP service for this type of upgrade, or I can put this material myself without losin

  • SignalExpress-Sweep type configuration problems

    Hello I am creating an analog signal with a sweep to make the change in the frequency of my signal. I chose "Sine wave" as a type of signal. Then, configuration of the scan, I have a problem. Indeed, the type of configuration, I have chosen is "expon