Skip navigation
Currently Being Moderated

Document size changes opening CS3 doc in CS6

May 26, 2012 1:05 PM

(Retitled from "Array in CS 6 NOT WORKING" and originally posted at May 23, 2012 4:06 PM in the InDesign Scripting forum)


I have used this var from CS3 to CS5.5 and it works but when I try and pass this in CS6 I get undefined.

 

var myJobEven=["68p2","-45p9","69p4.4","-39"];

 

Any Ideas. I am sending this info to a text box creation.

 
Replies
  • Currently Being Moderated
    May 23, 2012 1:13 PM   in reply to Gonterman1201

    var myJobEven=["68p2","-45p9","69p4.4","-39"];

    myTextframe.geometricBounds = myJobEven;

     

    works fine for me. Where do you see 'undefined'?

     

    Peter

     
    |
    Mark as:
  • John Hawkinson
    5,527 posts
    Jun 25, 2009
    Currently Being Moderated
    May 24, 2012 4:44 PM   in reply to Gonterman1201

    You need to give us a lot more information. The one line you posted just sets a variable to an array containing four strings. You don't show the script doing anything with that variable, so there's no way we can help you.

     
    |
    Mark as:
  • John Hawkinson
    5,527 posts
    Jun 25, 2009
    Currently Being Moderated
    May 26, 2012 12:37 PM   in reply to Gonterman1201

    Your words are just not clear enough.

     

    Can you please post a small self-contained script example that demonstrates the problem?

     

    It should be small, only enough code to show the problem. (The process of making it small may help you

    find the problem.)

     

    It should be self-contained, so we can run it ourselves and test it. Only then can we be sure we understand your problem.

     
    |
    Mark as:
  • John Hawkinson
    5,527 posts
    Jun 25, 2009
    Currently Being Moderated
    May 26, 2012 12:49 PM   in reply to Gonterman1201

    I created a CS3 file with A4 dimensions.

    I open it in CS6. It looks fine:

     

    Screen shot 2012-05-26 at 3.47.37 PM.png

    Also, does that mean this doesn't have anything to do with Scripting? Shall I move it to the general forum?

     
    |
    Mark as:
  • John Hawkinson
    5,527 posts
    Jun 25, 2009
    Currently Being Moderated
    May 26, 2012 1:07 PM   in reply to Gonterman1201

    You can move it if you wish.

    Done.

     

     

    My file is a custom size. The document size in doc setup changes to letter when I open it in CS6. This does effect my script because my script reads the document size.

    Well, please give us details. Post the screenshot of the file size in CS3 and then the file in CS6.

    Maybe the problem is more subtle than you suggest.

     

    Saying "my file is a custom size" does not let us help you. If yo usay, "My file is 105mm x 176mm with facing pages" that might be more helpful. But I suggest a screenshot of the whole dialog, because I suspect it is more complicated than you suggest.

     
    |
    Mark as:
  • Currently Being Moderated
    May 28, 2012 6:13 AM   in reply to Gonterman1201

    Try exporting the document from CS3 to .inix, then oepn that in CS6.

     
    |
    Mark as:
  • Currently Being Moderated
    May 28, 2012 7:14 AM   in reply to Gonterman1201

    > This does not however effect the physical document.

     

    Your second screenshot shows "51p, 66p" as its document size, but your document is still "47p, 75p" as shown in the first one?

     

    >However my script reads page size.

     

    Does this "read" page size exactly match the second -- wrong size -- screenshot value? (I guess it does, but just to make sure...) Just out of curiosity, as I don't have CS6 to experiment with: I guess you are reading "document" page sizes. Can you check what page[x].bounds reports as page size?

     
    |
    Mark as:
  • Currently Being Moderated
    May 28, 2012 9:10 AM   in reply to Gonterman1201

    You said this is present only in this one document. That could easily mean there is minor corruption that miught be cleaned by exporting. Did you try the suggestion to export to .inx that I made earlier?

     

    For what it's worth, there have been enough posts here on the forum about problems with converting legacy files in CS5 and CS5.5, many of which do not show up until a file has been editied and overwritten, that I no longer attempt to open any CS3 file in a newer version directly. Export to .inx, and opening that, and resaving with a new name to avoid overwriting the original has proved to be a very reliable workflow.

     
    |
    Mark as:
  • Currently Being Moderated
    May 28, 2012 10:29 AM   in reply to Gonterman1201

    That's pretty odd.

     
    |
    Mark as:
  • John Hawkinson
    5,527 posts
    Jun 25, 2009
    Currently Being Moderated
    May 29, 2012 6:19 PM   in reply to Gonterman1201

    I tried Exporting to inx. When I open the document in CS6 all the elements are shifted to the left. 6 different documents

    Do you have the same problem with IDML?

     

    You should probably file a bug with Adobe Support (http://adobe.com/go/support). I'd point you at http://adobe.com/go/wish but that doesn't allow you to attach files, which may be a problem here.

     

    Alternatively, can you provide me with one of the CS3 files that demonstrates this problem?

     
    |
    Mark as:
  • Currently Being Moderated
    May 30, 2012 4:31 AM   in reply to John Hawkinson

    John Hawkinson wrote:

     

    I tried Exporting to inx. When I open the document in CS6 all the elements are shifted to the left. 6 different documents

    Do you have the same problem with IDML?

     

    Not an option in CS3...

     
    |
    Mark as:
  • John Hawkinson
    5,527 posts
    Jun 25, 2009
    Currently Being Moderated
    May 30, 2012 7:13 AM   in reply to Peter Spier

    Do you have the same problem with IDML?

     

    Not an option in CS3...

    Ah, yes. Well, the question is whether CS3's INX is at fault or CS6's INX reading (or some fuzzy area). So I guess we ought to know how that CS3 INX is read in CS4/CS5, and whether IDML from CS4/CS5 causes the same problem.

    Bleh.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points