Hi my requirement is, In table I would like to give "equal column space" from the second column to end column of table. My code is below. Please resolve my error code and my requirement.

var myDoc = app.activeDocument;
myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    var myTable = app.selection[0].paragraphs[0].tables[0];
    myColumns = myTable.columns.count();
    myRows = myTable.rows.count()
     var myCs = new Array; 
        for (var c = 0; c < myColumns; c++)
                myCMaxWidth = 0;
                for (a=0; a< myRows; a++) {
                    if (myTable.rows[a].columns.length!=myTable.rows[a].cells.length) {
                        continue;
                    try {
                    myOutText = myTable.rows[a].cells[c].texts[0].createOutlines (false);
                    } catch (err) {
                        continue;
                    myC1Width = myOutText[0].geometricBounds[3] - myOutText[0].geometricBounds[1]
                    myOutText [0]. remove();
                    if (myCMaxWidth < myC1Width) {
                        myCMaxWidth = myC1Width;
                 myCs.push(myCMaxWidth);
                 myTable.columns[c].width = myCMaxWidth;
         var myTableWidth = myTable.width;
        var myTableColWidths = myTable.columns.everyItem().width;
        var myColumns = myTable.columns.count();
        var myTableParent = myTable.parent;
        var myParentWidth = myTableParent.textFramePreferences.textColumnFixedWidth;
        var myAdjustment = (myParentWidth - myTableWidth)/myColumns;
        for (var c = 0; c < myColumns; c++)
                myTable.columns[c].width = myTableColWidths[c] + myAdjustment;

This forum is about scripts in Acrobat/Reader. You need the one for
InDesign Scripting, I believe.

Similar Messages

  • HT1918 I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    You made a purchase and exhausted the credit on your card before it processed. All purchases are final. Contact iTunes Store support. You need to settle up before you can purchase or download anything else.

  • HT4436 I have a laptop Mac and an IPad, and would like to transfer pictures, videos, etc from the ipad to the Mac but not from the Mac to the IPad, how can I set up the iCloud in both devises to do so?

    I have a laptop Mac and an Ipad, and would like to transfer pictures, videos, etc from the ipad to the Mac but not from the Mac to the Ipad, how can I set up the iCloud in both devises to do so?

    Welcome to the Apple Community.
    Your best method would be to connect via USB and transfer that way, since videos are not transferred using photostream.
    However you can stop photos on your mac being added to photostream in the iPhoto preferences > photostream by unchecking the automatic upload box.

  • I am shooting aerial video with a GoPro H3  at 1080p 30fps and would like to edit videos and give them to my clients to use in as much media as possible for their advertising and marketing needs.  I would like to give it to them at the highest quality all

    I am shooting aerial video with a GoPro H3+ at 1080p 30fps and would like to edit videos and give them to my clients to use in as much media as possible for their advertising and marketing needs.  I would like to give it to them at the highest quality allowed.  What form should I save it in 'Publish and Share'?  I have Premier Elements 12.

    KM
    Can we assume that your 1080p30 is an AVCHD.mp4 file or other?
    You manually or the project automatically should set the project preset to
    NTSC
    DSLR
    1080p
    DSLR 1080p30 @29.97
    (If your frame rate is really 30 instead of 29.97, then go with DSLR 1080p30 instead of DLSR 1080p30 @29.97)
    See the following link for setting the project preset manually
    http://www.atr935.blogspot.com/2013/04/pe11-accuracy-of-automatic-project.html
    For your export
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 - H.264 1920 x 1080p30
    Please let us know if you have further questions on this or need clarification on anything written.
    Thank you.
    ATR

  • I've made 2 admin accounts by mistake and would like to know how do I delete the second one?

    I've made two admin accounts by mistake, and would like to know how I can delete the second one I made.

    Apple Menu / System Preferences / Users and Groups / ... click the lock, authenticate with your password.
    Select the User you want to delete, and click on the - sign.

  • I would like to know of how to change the language in my Ipod touch ?? anyone can help me please

    I would like to know of how to change the language in my Ipod touch ?? anyone can help me please

    Did you try Settings/General/International and choose your settings?
    copied from page 107 ipod touch user guide 5

  • I would like to downgrade my CC membership from the full version to the Photographers version

    I currently have the full CC membership, paying monthly. I am not using any of the other programs other than Lightroom & Photoshop so would like to downgrade to the Photographers version please. There seems to be no way of doing this in my account settings. How can I go about it please? I am based in the UK.

    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    And then buy new, since the only change I know of is to go UP in plan
    Upgrade single to all Cloud http://forums.adobe.com/thread/1235382

  • I would like to open an .htm file from the command line using firefox. Firefox responds by trying to open a URL (adding WWW to front of file name)

    firefox is located on unix box and I would like to use it to open report generated. After script creats report I would like to call firefox to read report. "firefox report.htm"

    I have solved this problem. All I needed was to follow firefox with the filename

  • HT3702 I would like to remove my credit card from the itunes system

    How do i remove my credit card from the itune system?

    Open App Store, then go to the bottom and press your apple ID the press view Apple ID, then payment info and when the payment info menu is opened press none

  • I have bought a new computer and would like to transfer my AI program from the old to the new... I have the trial version on the new computer, but cannot seem to get Adobe to accept my serial number. Says it is invalid.

    I have a new computer.  I purchased Adobe Illustrator on the old one and now want to have it on my new computer.  I downloaded the trial version of AI. How do I go about putting my serial number into AI trial to keep the product?

    Moving this discussion to the Downloading, Installing, Setting Up forum.
    Ninaa43224110 what version of Illustrator are you installing?  Are you using the serial number registered under your account at http://www.adobe.com/?  For information on how to locate the registered serial number under your account please see Find your serial number quickly.

  • Anyone know how it works to have multiple websites on iweb?  I would like to make a separate one from the one I'm using now and have them both up and running

    Does anyone know how it works to create more than one site on iweb - I have my primary site and mobile me connected to my domain name for that site, but now I'd like to add a completely different site and domain name.

    Here is some additional info on multiple sites in a single MMe account:
    How to have multiple sites in a single MMe account with one or more sites having a domain name.
    A. All sites are in the same Domain.sites2 files
    1 - only one site can use the CNAME method of domain name forwarding and it must  the top site in the left hand pane of iWeb.
    Click to view full size
    2 - the other sites must use URL domain name forwarding which directs the domain name to the site's full MMe URL, http://web.me.com/MMe_Username/Site_Name,  or, if there is no domain name, just MobileMe's full URL.
    B. Each site is in its own Domain.sites2 file.
    Again, only one site can use CNAME forwarding.  This presents a problem since CNAME forwarding directs the domain name to the basic MMe account URL: http://web.me.com/MMe_Username/ which uses an index.html file in the root folder of the account, iDisk/Web/Sites. Each time a new site is published or an existing site uses the File->Publish Entire Site a new index.html file is created in that root directory, iDisk/Web/Sites folder, directing the browser to that particular site.  This file is what the CNAME method uses to find the site it represents.  Therefore some steps must be taken to assure that the index.html file in the MMe Accounts root directory always points to the correct site.  This can be accomplished is three ways.
    1 - don't use the CNAME method.  Just use  URL forwarding .  This, IMO, is the simplest method as it doesn't requre any additional effort on the user once the domain name has been set up.
    2 - use the following method suggested by Wyodor in this topic: Is it possible to have multiple sites when using ur Domain name?   
    In iWeb domainfile 1:
    Create a dummy site : _dummy
    with a blank page.
    Create your working site : Whatever
    Add pages
    Publish both Sites to the same same location on the same server.
    Your _dummy site is now the default Site.
    Check.
    In iWeb domainfile 2:
    Create/Use your CurrentSite.
    Move a page to the top of the Site and back. Publish the Site.
    iWeb will create a new index.html file in the root of the server and from now on CurrentSite is the default site.
    Check.
    From now on, never move your Whatever Site to the top of the list in the iWeb sidebar and never change the page in the _dummy site.
    Simply do not touch your _dummy ever again. And never forget that.
    3 - use Ethmoid's suggested method in Using two sites - setting one up with separate domain? or republishing the entire site that uses  CNAME forwarding.  Just making a minor change and publishing the site changes does not create a new index.html file. 
    The entire site must be republsihing in order to get that new site.  
    Or keep a copy of the CNAME site's index.html file on your Mac and replace it manually in the iDisk/Web/Sites fodler when necessary.
    NOTE:  the CNAME method provides a shorter URL:  http://www.Domain_Name.com/Site_Name/Page_Name.  CNAME does not have masking.
    The URL forwarding displays the full MMe URL:   http://web.me.com/MMe_Username/Domain_Name/Page_Name.   With domain name masking that will be shortened to:   http://www.Domain_Name.com for every page of your site.
    WARNING: with masking visitors will only be able to bookmark and enter at the first page of the site.  If a page is refreshed the visitor is taken back to the first page.  Also search engines will only be able to index the first page of the site.
    OT

  • I am a first-time mac user.  I recently purchased the MacBook Air.  My previous computer was an HP laptop, but I would like to move my iTunes library from the hp to the MacBook Air.  How do I do this?

    I don't know how to transfer my itunes library from one computer to another. Please help!

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.

  • I bought a 3G and a 4G in Australia while working there for 3.5 years. I have since returned permanently to the USA and would like to use one of these, understanding the GSM requires using AT

    I bought a 3G and a 4G in Australia while working there for 3.5 years. I have since returned permanently to the USA and would like to use one of these, understanding the GSM requires using AT&T? When in Australia, I took these iphones to the Apple Store and they unlocked the 3G for me, knowing that I would be using it in the USA - but when I took it into the AT&T store in California, the iphone would not work with AT&T's SIM card.    May I unlock the 3G and/or 4G somewhere in the USA with Apple's blessing?

    If your phones were unlocked by your carrier, they should work with AT&T SIM cards.  You'll have to sign up for an iPhone phone and data plan with AT&T, but the SIM should definitely work.  Go to an AT&T store and have them set up your account and activate your SIM there.
    AT&T will NOT be able to unlock your Australia-purchased phones.

  • I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library from all of my devices?

    I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library and songs from MY phone ?

    this is not a reply - i asked the question - still trying to learn how all this works - someone please HELP ME

  • TS3510 I have 3 different apple devices using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I found this on a related question in the Community:
    Yes you can do it. I do it with 4 different devices all using the same Apple ID.
    You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
    You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
    Take a look at this for more information.
    The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern.  If this other post is correct, how to I set a different "contact at" in the iPod Touch?
    Goose

Maybe you are looking for