Help me Please..? How to change X & Y co-ordinate and height & width selected content...?

Hi Everyone!
          This is Vijay.I'm new baby to Indesign Script.In my office i took one task for indesign, that's i link one image to picture box that image jump from original position.so i copy that picture box and paste in place to new layer and now link the Eps to that box. againg jump that image. actually (manualy) i copy height,width , center  X and Y coordinates from old picture box image and Paste in to newly link image. then link image was perfectly sit in position. any one do for Script or any one help me how to do this..Script.
Thanks in Advance
-yajiv
Sample for ur clarification....

hi Dave!
               Thanks for Quick Reply. Actually i know very well in Java script. may be i finish that script with in 2 weeks. i try to work but i can't that why i post..!
can you tell any idea to solve that problem.now the problem is i can't change height and width. thanks in Advance.
-yajiv
my script is..
    var i,j;
    var mysel=app.activeDocument.selection;   
    var myDoc = app.activeDocument;
    if (app.documents.length > 0){
        if (mysel.length > 0) {
            //app.copy();
            var myObj1 = app.selection[0];
            var myObj2 = app.selection[1];
            var vb = myObj1.visibleBounds;
            var vb1 = myObj2.visibleBounds;
            var myWidth = vb[3]-vb[1];
            var myHeight = vb[2]-vb[0];
            var myWidth1 = vb1[3]-vb1[1];
            var myHeight1 = vb1[2]-vb1[0];
            var X=(vb[3]+vb[1])/2;
            var Y=(vb[2]+vb[0])/2;
            //myObj1.deselect();
            myObj.visibleBounds=myObj1.visibleBounds;
            alert(myObj.visibleBounds);
            alert("MyObjWidth = "+myWidth+"\n"+"MyObjHeight = "+ myHeight);
             alert("MyObjWidth1 = "+myWidth1+"\n"+"MyObjHeight1="+ myHeight1);
             alert(myObj.visibleBounds);        
        else {
            alert("Nothing is selected. Please select an object and try again.");
    else {
        alert("No InDesign documents are open. Please open a document and try again.");

Similar Messages

  • TS1453 Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Whinston,
    I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies?

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • I have a mac 10.5 and need help figuring out how to change my email settings so it does not automatically delete my inbox every 30 days.  How to I adjust the mail settings?

    I have a mac 10.5 and need help figuring out how to change my email settings so it does not automatically delete my inbox every 30 days.  How to I adjust the mail settings?

    I think it must be an IMAP account then, & in Mail>Preferences>Accounts>Advanced>Keep copies for Offline viewing:>Don't keep copies, then on the Server, or maybe it's just this one itself, but on the Server you have a setting to remove eMails after 30 days.
    If it's a POP account we'd have to investigate that... but you didn't say so I'm guessing here.

  • That was of someone else now i cant activate my iphone help me please how to activate my phone now .

    I have forgot my apple id and password that was of someone else now i cant activate my iphone help me please how to activate my phone now .because i buy this phone form Ebay.but the guys no tell me this phone icloud is locked...so bad for me,i buy $299..how can i do?

    Hello AryanRajesh,
    It sounds like you do not have your Apple ID/iCloud password to activate your iPhone.  I recommend resetting your Apple ID password using the steps in the following article:
    Apple ID: If you forget your password
    http://support.apple.com/kb/HT5787
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HOW TO CHANGE PROGRAMATICALLY LABELS OF BUTTONS AND ...

    I want to do a HTMLDB application is some languages that user choice in web page.
    I have resolve good how to change messages in pages, but I need to know how to change , labels in buttons, reports and in items.
    ¿How I can do this? Change this by program.
    Any help wellcome.
    Thanks in advanced.
    Regards everybody.

    Hi,
    Normally, to translate your entire application you would export the application using Shared Components=>Translation Services. There is documentation on how to do this:
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14303/global.htm
    You can also use Shared Components=>Manage Messages to translate individual items. If this is what you want, please let me know and I'll let you know what I did to achieve this.
    Normally, the user would select their preferred language using a browser setting. Do you intend for them to select a language on a page?
    Regards
    Andy

  • How to change the icon of JOptionPane and JFileChooser in swing

    Hi,
    Does any body know how to change the icon of JOptionPane and JFileChooser in swing.
    Please help me out in this.
    Thanx in advance.

    Try this
    import javax.swing.*;
    import java.awt.event.*;
    public class Untitled4 {
      public Untitled4() {
      public static void main(String[] args) {
        ImageIcon i = new ImageIcon("C:/TestTree/closed.gif");
        JOptionPane p = new JOptionPane();
        p.setMessage("This JOptionPane has my icon");
        p.setMessageType(JOptionPane.QUESTION_MESSAGE);
        p.setOptionType(JOptionPane.YES_NO_CANCEL_OPTION);
        final JDialog d = p.createDialog("test");
        d.setIconImage(i.getImage());
        d.setVisible(true);
        d.setModal(true);
        if(Integer.parseInt(p.getValue().toString()) == JOptionPane.YES_OPTION) {
            System.out.println("You Clicked Yes");
    }

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • Hi could someone help me please ? Ive just bought the new ipad and want to put some movies on it. I have already converted some movies using handbrake and tried to transfer them to my ipad and it just wont work. ive tried drag and drop and everything

    Hi could someone help me please ? Ive just bought the new ipad and want to put some movies on it. I have already converted some movies using handbrake and tried to transfer them to my ipad and it just wont work. ive tried drag and drop and everything

    bluztoo wrote:
    Haven't really used any of them including VLC - actually use netflix on the ipad more than anything. I was able to drop an mp4 into imovie on my ipad and see it there. This was something I had shot as avhcd and converted with turbo.264. Played fine. Probably not what you want for a movie player though.
    Well, turbo.264 is indeed very nice to have - even for converting full-sized movies. (Nevertheless, TechRadar's latest roundup (see http://www.techradar.com/news/software/applications/6-of-the-best-video-converte rs-for-mac-1074303 ; also linked from another roundup at http://www.iphonelife.com/blog/87/benchmark-excellent-multimedia-converter-handb rake-vs-commercial-apps ) has shown it's still worse than HandBrake in most respects.)
    All H.264 files (assuming they are H.264 level 4.1 or lower) are compatible with the built-in Videos app.
    bluztoo wrote:
    Those of you who use other players, what do you reccomend? Just curious.
    It entirely depends on your needs. The top players (AVPlayerHD / ProPlayer, It's Playing, GoodPlayer) all have different strengths and weaknesses. I myself use It's Playing the most as I convert everything into MP4 and simply love the DSP's (brightness / volume / saturation boosting). (Its software decoders are definitely worse than those of AVPlayerHD / ProPlayer; however, MP4's are played back from hardware.)

  • HT1918 Do you know how to change your credit card details and Country on Itunes? It wont let me!!! Help!!!

    I am trying to change my credit card details on Itunes as I have moved to NZ and closed down the credit card in Australia. There is $5 left to pay on the card. It will not let me update my address to NZ or put in my new credit card details. HELP!!!!!
    It says I have to provide a credit card in the Australia before I can clear my $5 credit card debt and I have now cancelled my card in Australia and don't have another one!
    Do you know how I can change my address to NZ and then change my billing to my new credit card in NZ and pay the $5 bill.
    Do I have to shut down my account or reapply to Itunes with a new email address and leave this bill outstanding!! Seems crazy........but cant seem to see any other way around it!

    Click here and request assistance.
    (87754)

  • Help! Please~ How to remove this spyware?

    God I just can't believe that my husband had installed a spy software on my phone!
    I am sure he is monitoring me, because I find some emails including my text messages, phone calls and screenshots of my BB, and smoothly I get the purchase address: http://www.remotespy.co/android-blackberry-spy.htm​l  I ask the support to help me to uninstall this software, they say they don't have the right to do so, but it is password protected and I don't know. So I write here to ask for your help, please! Any advice is OK. Thanks very much.

    The first thing you do is get your husband to admit he installed the software on your phone. Once he admits it, you threaten to go to the police because installing spy software on someone's phone without their permission is illegal.
    If he won't admit to it, or he does but will not uninstall it, you divorce him and do a security wipe of the phone and start over fresh (both with your phone and your life). 
    Keep us up to date.  
    (My suggestion might seem extreme. I would stop short of the divorce and just get him to admit he's responsible for the software on your phone.)  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to change value of instance variable and local variable at run time?

    As we can change value at run time using debug mode of Eclipse. I want to do this by using a standalone prgram from where I can change the value of a variable at runtime.
    Suppose I have a class, say employee like -
    class employee {
    public String name;
    employee(String name){
    this.name = name;
    public int showSalary(){
    int salary = 10000;
    return salary;
    public String showName()
    return name;
    i want to change the value of instance variable "name" and local variable "salary" from a stand alone program?
    My standalone program will not use employee class; i mean not creating any instance or extending it. This is being used by any other calss in project.
    Can someone tell me how to change these value?
    Please help
    Regards,
    Sujeet Sharma

    This is the tutorial You should interest in. According to 'name' field of the class, it's value can be change with reflection. I'm not sure if local variable ('salary') can be changed - rather not.

  • How to change the ESS objects, iViews and Pages, translation in the portal?

    Hello everyone,
    I'd like to change the standard SAP translation for iView and Pages in the Portal level. Does anybody knows how to do this?
    My landscape is NW2004s and  ESS  for  ECC 6.0
    Regards
    Luciano

    you can change the standard SAP iViews and Pages using the Portal Content Translation feature of the Portal ( go to Content Administration->Portal Content Translation. Follow the instructions at
    http://help.sap.com/saphelp_nw04/helpdata/en/25/08174082fe1961e10000000a155106/frameset.htm
    all ESS iviews and pages have their content "ready for translation" and you can use the instructions above to translate that content.
    Tiberiu
    please award points if response was useful.

  • How to change the name / IP address and domain name for BOE Server

    Hello,
    We want to change the name / IP address and domain name for BOE Server, please could you indicate the steps or procedure to follow?
    I need your help
    thank you

    If it's 3.1 just change them, shouldn't cause any issues if by domain name you are referring to changing the domain the computer belongs to. If you are changing your domain for AD authentication then you will may have to take quite a few steps if the old domain is going away. Let us know.
    Regards,
    Tim

  • How to change my Apple ID email and password

    I need to know how to change my Apple ID and password please and thanks

    Change Apple ID password.
    http://support.apple.com/kb/ht5624

Maybe you are looking for