Skip navigation
Currently Being Moderated

Text frame is not moving

May 31, 2012 9:42 PM

Tags: #indesign_cs5.5

Hi All,

 

I am new to indesign javascript and trying to move the text frame in top of the page by using the below move command.

 

myGraphics[j].parent.move[myY1,myX1];

 

But unfortunately the frame is remaining in the same position and this is i need to achieve in Image placing of float tool.

 

I am trying to move the text frame in the top of the page since need to place the images in top and bottom of the page.

 

This is bottleneck case and last 3days struggling lot to get this scenario.

 

Any help is greatly appreciated.

 

Thank you in advance.

 

Regards,

Sathya Rani M

 
Replies
  • Currently Being Moderated
    May 31, 2012 10:15 PM   in reply to Sathya Rani M

    I think you are speaking about the same case discuused in the below forum link,   is that you want. Looks like you both are working on the same task.

    http://forums.adobe.com/message/4450216#4450216

     

    ---------

    Green4ever

     
    |
    Mark as:
  • Techi Panda
    215 posts
    Apr 5, 2009
    Currently Being Moderated
    May 31, 2012 10:18 PM   in reply to Sathya Rani M

    Hi try this

     

    myGraphics[j].parent.move([myY1,myX1]);

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 12:35 AM   in reply to Sathya Rani M

    Hi if you need help at least you need to post your sample code. And tell us  where you are get stuck. Without that it is hard to help you.

     

    Green4ever

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 1:34 AM   in reply to Sathya Rani M

    How is this different from your previous question in http://forums.adobe.com/message/4450216#4450216?

     

    The code in there works. If it does not for you, YOU HAVE TO TELL US WHY NOT.

     

    (Edit) "Bcs it doesnt do exactly what i want" is not a good answer.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 3:03 AM   in reply to Sathya Rani M

    Jongware's script is working good for me,

     

    for (p=0; pp=app.activeDocument.pages[p],p<app.activeDocument.pages.length; p++){
    if (pp.allGraphics.length == 1){
      pp.allGraphics[0].parent.move([pp.allGraphics[0].parent.geometricBounds[1], pp.marginPreferences.top]);
      }
    }
    

     

    If it is not now working for you, you need to tell more about that. I mean in which case it is not working.

     

    Green4ever

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 3:55 AM   in reply to Sathya Rani M

    Do NOT say "it is not working". DO say "I get the error "xxxx"", or "The script moves the object off the page", or "The script makes my computer crash". ANYTHING MORE than "it is not working". ANYTHING more.

     

    If you DID tell us the exact error message you got, it could have been something like

     

    JavaScript error on line 22: Syntax error

    Line:

    myGraphics[j].parent.move[myY1,myX1];

     

    ... but since you did NOT tell us what went wrong, we have to read your script top to bottom for obvious errors, set up a test document that might or might not be exactly your document, copy the script into a new file, run the script and then see for ourself why "it is not working".

     
    |
    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