[JS] Items on page vs pasteboard move differently in CS3 vs CS4/CS5

I'm trying to move all the items on all the pages in a document (including the master pages), regardless of what layer they are on and I want to retain their locked/unlocked states. In trying to figure this out I came across Adobe's AdjustLayout Sample script. This was quite helpful and I adapted it to move all the items a specified amount (the modified script is shown below). There may be a better way, but this was pretty much working.
Except one problem:
- In CS4 and later all items move, those on or off the page (in the pasteboard).
- In CS3 though, only the items on a page move, and NOT the ones on the pasteboard (which I do also want to move).
I have searched this forum and read a lot, but still haven't figured out how to get CS3 to also move the pasteboard items. Can anyone help? Below is the script I adapted, but I am open to other ways if there's something better. I used this because it seemed close to what I was looking for.
Thanks, in advance.
Dan
//Moves the content by specified amounts
//based on sample script by Adobe, but this moves objects by same amount regardless of even or odd pages
myDisplayDialog();
function myDisplayDialog(){
          var myLabelWidth = 70;
          var myDialog = app.dialogs.add({name:"Adjust Layout"});
          with(myDialog.dialogColumns.add()){
                    with(borderPanels.add()){
                              with(dialogRows.add()){
                                        with(dialogColumns.add()){
                                                  staticTexts.add({staticLabel:"Offset Amount:", minWidth:myLabelWidth});
                                                  staticTexts.add({staticLabel:"Horizontal:", minWidth:myLabelWidth});
                                                  staticTexts.add({staticLabel:"Vertical:", minWidth:myLabelWidth});
                                        with(dialogColumns.add()){
                                                  staticTexts.add({staticLabel:""});
                                                  var myXField = measurementEditboxes.add({editValue:-12, editUnits:MeasurementUnits.points});
                                                  var myYField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points});
          var myResult = myDialog.show();
          if(myResult == true){
                    var myX = myXField.editValue;
                    var myY = myYField.editValue;
                    myDialog.destroy();
                    myAdjustPages(myX, myY);
          else{
                    myDialog.destroy();
function myAdjustPages(myX, myY){
          var myPage;
    //Set the transform content property to true so that content will move with frames.
    //myOldTransformContent = app.transformPreferences.transformContent;
    //app.transformPreferences.transformContent = true;
    var usersXUnits = app.activeDocument.viewPreferences.horizontalMeasurementUnits;
    var usersYUnits = app.activeDocument.viewPreferences.verticalMeasurementUnits;
    //Set the measurement units to points.
    app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    //Save the old page numbering
    var myOldPageNumbering = app.generalPreferences.pageNumbering;
    app.generalPreferences.pageNumbering = PageNumberingOptions.section;
    //Set page numbering to absolute
    app.generalPreferences.pageNumbering = PageNumberingOptions.absolute;
    for(var myCounter = 0; myCounter < app.activeDocument.pages.length; myCounter++){
        myPage = app.activeDocument.pages.item(myCounter);
        var myPageValue = myPage.documentOffset;
        myAdjustPage(myPage, myX, myY);
    for(var myMasterPageCounter = 0; myMasterPageCounter < app.activeDocument.masterSpreads.length; myMasterPageCounter++){
        myMasterPage = app.activeDocument.masterSpreads[myMasterPageCounter].pages[0];
        var myPageValue = myMasterPage.documentOffset;
        myAdjustPage(myMasterPage, myX, myY);
    }    //Reset the transform content and measurement units to their original values.
    app.activeDocument.viewPreferences.horizontalMeasurementUnits = usersXUnits;
    app.activeDocument.viewPreferences.verticalMeasurementUnits = usersYUnits;
    //app.transformPreferences.transformContent = myOldTransformContent;
    app.generalPreferences.pageNumbering = myOldPageNumbering;
function myAdjustPage(myPage, myX, myY){
          var myPageItem;
          for(var myCounter = 0; myCounter < myPage.pageItems.length; myCounter ++){
                    var myResetItemLock = false;
                    var myResetLayerLock = false;
                    myPageItem = myPage.pageItems.item(myCounter);
                    if(myPageItem.locked == true){
                              myPageItem.locked = false;
                              myResetItemLock = true;
                    if(myPageItem.itemLayer.locked == true){
                              myPageItem.itemLayer.locked = false;
                              myResetLayerLock = true;
                    myPageItem.move(undefined, [myX, myY]);
                    if(myResetItemLock == true){
                              myPageItem.locked = true;
                    if(myResetLayerLock == true){
                              myPageItem.itemLayer.locked = true;

No.
You'll need to loop through all pageItems and move them individually (checking if they're locked as you go...)
Harbs

Similar Messages

  • Do paragraph style overrides work differently in CS3 vs CS4?

    Hi All-
    I’m in the process of moving a workflow from CS3 to CS4, and have run into an unexpected problem. In the existing CS3 workflow, we receive copyedited text with Word paragraph styles applied, then import this text into our InDesign template. This template has all the same paragraph style names as the Word file, so we tell InDesign to use the InDesign style definitions in the Import options. So, for instance, the Word style for Para_Text is Times New Roman 12pt, and the InDesign style for Para_Text is Helvetica Neue 8pt, and on Import InDesign automatically changes it to Helvetica Neue 8pt. This is as we want it.
    Things fall apart, however, when we import the same text into the same template in InDesign CS4. It still applies the InDesign style definition, but has additional overrides to make it look like the Word style definition. So, it recognizes that the underlying paragraph style should be Helvetica Neue 8pt, but it then preserves Times New Roman 12pt as an override. If I select the text and do Clear Overrides, it’ll revert to the Helvetica Neue 8pt we want it in, but for other reasons that solution is less than ideal.
    I think I can come up with a rather kludgy way around this, but I’m trying to understand exactly why we’re getting the different behavior in CS4. It seems like paragraph style conflicts are being handled in a different way in CS3 than CS4 – in CS3, if the InDesign paragraph style specifically spelled out a font, that would dominate on import; now, in CS4, it’s allowing the Word paragraph style to seep through as an override. Any thoughts as to why this is happening?
    Thanks,
    -Nate

    Hi Chris.
    Good news. I cant tell you how happy i am for all your help ;-) and you other guys.
    The latest Eizo 5.2.1 software fixed the problem on all 3 Eizo monitors.. Weeee
    I'm back to normal.
    Now i just have another damn problem started not long ago ;(
    My Photoshop CS3 and CS4 keeps crashing on me after a wile of work ???
    I tried everything. Deleted preffs etc. etc.
    It have been working for long long time but suddenly it keeps crashing all the time.
    I tried to remove some new plug-ins, but it was not that.
    Only thing i did also was to install new ram.
    Upgraded from 10GB to 14GB in all our Mac Pro.
    So after i tried to switch the ram around to check if some was bad.
    Also run some memory software but everything came out right.
    So now the only thing left is that Photoshop dosent like ram between 14GB & 16GB.
    Under was fine and i never tried over 16 gigs.. weird
    Any ide what could corse this ?

  • Static text in textfields renders differently when published in CS4/CS5

    Hi
    I am experiencing an issue where legacy files I created in Flash CS4 look different when published in CS5. Fonts are rendered differently. I have noticed it so far on DIN and Goudy Modern. The output when published in is CS5 is markedly different than the output when published in CS4.
    Can anyone offer any pointers on how to think about, deal with, avoid etc.
    Many thanks.
    Mike
    UPDATE
    A little more logic to add.
    It seems to be opening the file in CS5 changes the fonts somehow. CS4 files that I have not opened in CS5 publish as I would expect in CS4. CS4 files that I have opened in CS5 publish differently whether then published in CS5 or CS4. On Goudy for example. In CS5 adding .5 to the character spacing and 3.5 (not 2) to the line spacing makes the font render similarly in CS5 as it did in CS4 at 0 character spacing and 2 on the line height.

    Yes. It's static. I recreated the text and now it works. Weird.
    Thank you for your reply and time.

  • IWeb page w. 4 different movies creates site with 4 same movies

    I can't figure this out...(iWeb '08)
    I create a site in iWeb and use the Media window to drag in 4 different movies, each one a couple minutes in length. The site is just how I would like it.
    I then publish the site. When I go to view the published site (at me.com), it has published 4 of the same movie. It was like I dragged the same movie in 4 times. I've restarted everything, recreated pages over game...all with no luck. The movies are all in iMovie and held as different projects (that is how I get to them through the inspector).
    Any advice? This is driving me nuts!
    When I create 4 different pages, each with a different movie, then it will STILL NOT publish correctly, with a different movie on 2 of the pages, and the other 2 the same. I have re-checked everything in iWeb and iMovie and everything appears normal. Ugh!
    Thanks!

    Try the basic and quick fix of deleting the iWeb preference file, com.apple.iWeb.plist, that resides iny your User/Library/Preferences folder. Then launch iWeb, do a Publish All to MobileMe and see if there's any change.
    OT

  • IBE: Items Per Page for Display profile at Responsibility level

    Hi,
    we would like to have different number of items per page for different sites. We thought we would achieve it by setting profile "IBE: Items Per Page for Display" at the responsibility level and have unique responsibilities to access different sites.
    However, I saw that by default profile "IBE: Items Per Page for Display" is not visible at the responsibility level. Can I alter it to be visible at responsibility level in the profile definition and then set it at the responsibility level?
    Kindly help.
    Regards
    Harsha.

    I tried to change at SERV level and still the profile never gets updated. Kindly help.

  • Report with continuation pages that have a different layout?

    Is there a good way to build a master-detail report where the detail records continue on pages with different layout after the first page?
    Take e.g. the invoice report example in Oracle Reports Building Reports, part V, chapter 33 and modify it so that only the first page shows the invoice header information and has the full invoice form as a background image; the subsequent pages have a different background image and show only continuing line items that may have even slightly different horizontal field locations. How would you make the line items "flow" to the continuation page(s)?
    I tried building a report with the first page as the header section and the continuation pages as the main section, both with a repeating frame sourced from the same details group but can't figure out how to make the details actually continue on the continuation page and not just start from the beginning...

    Hi,
    You both need to using AIM valid name or both using Jabber based IDs like FaceBook or GoogleTalk  (oor Yahoo if you must)
    Apple's @mac.com and @me.com are Valid AIM names as well as regular AIM names.
    Jabber IDs are gained from non centralised servers and there are thousands of Public and private servers issuing IDs
    Google Mail with "Talk" enabled on your Accounts settings or a FaceBook account with "Chat" enabled are valid Jabber IDs
    Jabber IDs are rarely emails (Google is an exception).
    However they follow the email format which means the AIM Buddy list will "accept" them format wise
    (the same is true to some extent the other way round)
    9:54 PM      Monday; August 13, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Green Indicator in Item Overview page with Version Creation

    Hi Folks,
    With each version created for an item after passing through decision points, a green indicator for the corresponding versions created should appear in Item Overview screen at the item level, which is not happening.
    If this happens as a part of standard functionality in RPM, how can we make the traffic indicator lights turn green in the Item Overview page once the version is created ?
    Thanks in advance.
    Edited by: karthikeyan Duraisamy on Jan 31, 2011 11:22 AM

    I went through the document on the mentioned by you.
    But my requirement is a bit diiferent.
    I want to have 3 different drop downs with a  numeric field attached to them.The sum of these numeric fields should always be 100 (two values are manually selected but the third value should be calculated automatically based on the previously selected values).
    Example,
    I select 10 as a value for Drop down 1, 40 for drop down2 then for the drop down3 the value should populate automatically as 50 (100 - (10+40)).i.e. the sum being 100.
    Can you or any one please help me with this.
    Also I am not sure how do we give multiple options for selection (like 10,20,..50 etc upto 100) for a drop down.

  • Reinstalling pages for free on different apple products is it possible?

    I purchased an older version of pages on my ipad a year or so ago ,  I no longer have the ipad but I have my trusty mac book and iphone.
    I would like to install the pages app on both my mac and iphone fro convenice however i do not wish to have to pay again for the privilege, can I reinstall the app for free? As currently even when im signed into my account pages does not show as a purchased item yet I have paid for the app. Many Thanks, Chris

    Welcome to Apple Support Communities
    You can install Pages for free in the iPhone, but not on your MacBook. Pages has got the same version for iPhone, iPad and iPod touch, so when you purchase it in the App Store, you can install it as many times as you want in all your iPhones, iPads and iPods touch for free. If you don't see it listed in Purchases in the iPhone, see if it's hidden, and if so, unhide it > http://support.apple.com/kb/ht4919
    Respecting to the MacBook, Pages has got a different version for Macs, so you have to buy Pages at the Mac App Store if you want to use it in your Mac. After doing that, you will be able to install it as many times as you want in all your Macs for free

  • Placing library item into page

    This script for placing library item into page and applying object style to the item. In line 16, script shows that "assets" property does not support. Please resolve this.
    if (app.documents.length==0){
        alert("Please open the Document");
        exit();
    if (app.libraries.length==0){
        alert("Please open the Library");
        exit();
    app.findTextPreferences=app.changeTextPreferences=null;
    app.findTextPreferences.appliedParagraphStyle="MN";
    var myfound=app.activeDocument.findText();
    alert(myfound.length);
    for(i=0; i<myfound.length; i++){
    var mylib=app.libraries.assets.itemByName("Box").placeAsset(myfound[i].insertionPoints[0]);
    var mymove=myfound[i].move(LocationOptions.atBeginning, mylib.insertionPoints[0])
    mylib.appliedObjectStyle="MN_Obj";

    To make that work, you have to address an open library (line 16).
    app.libraries describes the collection of all open libraries, not a distinct one.
    If only one library is open you could address the one with its index:
    app.libraries[0]
    If you already know the name of the library or better, the exact path of the library, you can:
    1. Make sure to open it
    2. Call it by its name
    Let's assume you know the name and you know that the asset you want to place is stored inside, you could do it this way:
    app.libraries.itemByName("TheNameOfTheLibrary").assets.itemByName("Box").placeAsset(
    /*Wherever you want*/
    Now, what will this line return?
    A library object? Hardly. So be cautious with using a variable name like "mylib".
    According to documentation it is returning an Array, and we can assume, that in this array is the object that is placed out of the library. Your asset stored in the library which goes by the name of "Box". Whatever that is.
    If you want to find out, you can use the following, more descriptive variable: "myPlacedAsset". That sounds more neutral.
    var myPlacedAsset = app.libraries.itemByName("TheNameOfTheLibrary").assets.itemByName("Box").placeAsset(
    /*Wherever you want*/
    Using the ESTK (ExtendScript Toolkit) together with $.writeln() can write the true nature of the placed asset to your JavaScript Console:
    $.writeln(myPlacedAsset.constructor.name);
    is informing you what kind of object "myPlacedAsset" really is. If indeed it is an Array, you could look for its length. If its length is "1", you get to the "heart" of your placed object by:
    $.writeln(myPlacedAsset[0].constructor.name);
    Or by that more inquisitory question:
    $.writeln(myPlacedAsset[0].getElements()[0].constructor.name);
    If your array is of a greater length, you have to loop through this array and question every single object!
    Before testing, exchange my comment "/*Wherever you want*/" with the code you like to use: Obviously the first insertion point of your found text. Hold on! This will backfire to you, because every time you place one instance of the asset you will add a character to your found text and shift the original insertionPoint. Better loop from back to forth or do the search from back to forth.
    Adobe InDesign CS6 (8.0) Object Model JS: Text
    Please, try that and report back…
    (Isn't noone reading the documentation these days?)
    Indesign JavaScript Help
    Adobe InDesign CS6 (8.0) Object Model JS: Table of Contents, Libraries Suite
    Adobe InDesign CS6 (8.0) Object Model JS: Library
    Adobe InDesign CS6 (8.0) Object Model JS: Asset
    Adobe InDesign CS6 (8.0) Object Model JS: Asset
    Uwe

  • I used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this?

    i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to submit a bug report for OSB? - restore fails if number of items per page is changed from the default of 30

    In the OSB web gui, one of my users found that if the number of items per page is changed from the default of 30, the restore of the file will fail.  He tested this using recent versions of Firefox and IE.  We have verified this to also be the case using Chrome.
    In a directory containing over 100,000 files, moving 30 at a time to find the one to be restored is a very frustrating user experience.
    How do I file a bug report for this issue?  Is there a workaround for this bug to enable my users to more easily find the file to restore without being restricted to the default of 30 items per page?

    Yes there is a bug in the webtool in the current release. You can use the commandline obtool to do the restore, that is much faster and works fine.
    Thanks
    Rich

  • A page item on page 'SCHEDULE' at location 34,488 requires rasterization, but is too large to rasterize. Resize it smaller and try again

    I keep getting this error,
    A page item on page 'SCHEDULE' at location 34,488 requires rasterization, but is too large to rasterize. Resize it smaller and try again

    This basically means that there is an object that has its top left corner at x: 34 y: 488 which is too large to be rasterized, it could be due to any large object that is extreme wide or tall.
    Try to check page content and then resize it to verify the behavior. Please let me know how it goes.
    Thanks,
    Sanjit

  • Item Level & Page Level Validation..

    Hi ,
    What is the difference between Item Level validation & Page Level validation..
    in which sceneario it will be useful.
    Anoo..
    Edited by: Anoo on Dec 16, 2008 5:04 AM

    Hi,
    From the APEX help:
    * Item level validations are specific to a single item.
    * Page level validations do not apply to any single item, but apply to an entire page.
    {code}
    Paulo Vale
    [http://apex-notes.blogspot.com]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Inserting a new extension field in the line item details page

    Hi!
    Is it possible to insert an extension field/collection in the line item details page of the master agreement? I have tried supplying several Field ID found on that page on the DISPLAY AFTER field of the extension, but nothing works - the new field still gets displayed at the header page.
    Thanks in advance.

    Hi,
    Line Item is an independent class. You cant add an extension to Line Item through Master Agreement. This is the reason why the extension you add appears on the header tab of Master Agreement.
    When I go to create an extension definition, I don't find Line Item in the drop down of Extended Class Name. So, my guess would be that we cannot create an extension definition for Line Items.
    Let us know if you, or anybody, has a way to achieve it.
    Thanks
    Devesh

  • Image instead of List Name, and hyperlink the image to view 'All Items.aspx' page

    Hi,
    I would like remove the Page title for list (i.e., name of the list in view all items.aspx page) , and instead use image and hyperlink the image
    to 'All items.aspx" page.
    Using developer tool found the element (#PageTitle) and added 'Script Editor' webpart and below css script to it. I am successful in replace the
    title to image, however, I am unable to add the HTML tag for hyperlink. Where do I need to add or how do I add? Could anyone help me please??
    <style type="text/css">
    #pageTitle
    background-image: url('http://w2k81368:2116/SiteAssets/Test.jpg');
    background-repeat:no-repeat;
    text-indent: 100%;
    white-space: nowrap;
    </style>
    Regards,
    Sunitha

    Hi Sunitha,
    According to your description, my understanding is that you want to change the list title to an image.
    I recommend to add the code below to the list page:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">
    $(document).ready(function (){
    var s = "<img alt='SP' src='http://w2k81368:2116/SiteAssets/Test.jpg'>";
    var $t = $("#DeltaPlaceHolderPageTitleInTitleArea span span a");
    $t.html(s);
    </script>
    After that, the list title will change to the image and it will show allitems.aspx page when clicking the image.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Changes in Data View

    Hi Expert, I am changing certain fields in planning book and date view for a particular planning area I want to know how to transform the changes in to quality system for testing, I think I have to transport this, but I have not done this before Plea

  • Create orders in CRM with repetitive CRM_ORDER_MAINTAIN remote calls

    Dear All, Though we all must have done a lot of playing around with CRM but I am sure that a lot of us would find this as a tricky one. We know that CRM Web-UI framework at the back-end is actually a repetitive, Remote call framework to CRM APIs and

  • Itunes on win re-imaged music directory not readabe?

    My old itunes was working fine on win but I upgraded to new image from scratch & installed itunes, it doesn't read the music directory or show any tracks / content / music files from the same hdd location? I tried uninstalling reinstall still problem

  • Batch captioning in bridge

    I have been trying to find a way to apply the same file info (keywords, caption, author etc) to all the images in a Bridge stack. Or alternatively any way of doing it in Photoshop. I have done it with actions and batch processing but that means putti

  • Routing error in Application Best Practice App (TDG) ?

    Hi All, i try Application Best Practices ... but if i select always another product ... the category and the Vendor are always the same. But if we check the json files there are different. Or should it not work in mock modus? regards Bernard