How can I get width that multiple selected items?

How can I get width that multiple selected items? (Not grouped.)
//---------- source code ----------
var mm = 2.83464566929134 //unit conversion. (point->milimeter)
var W = docRef.selection[0].width/mm;
alert(W);
//---------- source code ----------

That's right Carlos
@kimDino8,
my script in Carlos link creates a green rectangle around the selected items. If you don't need this rectangle than you can remove this lines:
var newRGBColor = new RGBColor();
newRGBColor.red = 0;
newRGBColor.green = 255;
newRGBColor.blue = 0;
and replace this:
var aRectangle = aDoc.pathItems.rectangle(vBounds_Ob, vBounds_Li, vBounds_Re - vBounds_Li, vBounds_Ob - vBounds_Un);
aRectangle.strokeColor = newRGBColor;
aRectangle.strokeWidth= 2;
aRectangle.filled = false;
aRectangle.stroked = true;
aDoc.selection = null;
with this:
var mmFactor = 2.83464567;
alert("width = "+ (vBounds_Re - vBounds_Li)/mmFactor);
alert("height = "+ (vBounds_Ob - vBounds_Un)/mmFactor);
Further you only have to do: create a function for rounding of the result.

Similar Messages

  • How can I get rid of multiple pictures at the same time?

    how can I get rid of multiple pictures at the same time?

    Adobe Bridge, lightroom and your file browser (windows explorer or Mac Finder) can select multiple pictures at once and then delete. If you are looking for more than that for information, you will need to be more specific at what your doing, what OS you have, and version of software your using. If necessary post screen shots so we can see what your doing. The more information we have the more detailed of an explaination can can give back to you.

  • My laptop got formatted and so did all my itunes information like music, contacts, and games. So how can I get all that back because if I just plug my iPhone into the laptop all my stuuf that was on my phone will be gone? help please

    My laptop got formatted and so did all my itunes information like music, contacts, and games. So how can I get all that back because if I just plug my iPhone into the laptop all my stuuf that was on my phone will be gone? help please

    http://www.wideanglesoftware.com/touchcopy/index.php

  • Hi  by mistake i deleted some photos on my i phone 5s how can i get back that photos?

    by mistake i deleted some photos on my i phone 5s how can i get back that photos can you tell me please.

    You cannot unless you backed up your phone. If you had PhotoStream on, they might still be there as well.

  • I brought an IPhone 5 from a second hand source and I tried to activate it but it asked for his Apple ID how can I get around that

    I brought an IPhone 5 from a second hand source and I tried to activate it but it asked for his Apple ID how can I get around that?

    MarkeyMarcc wrote:
    I brought an IPhone 5 from a second hand source and I tried to activate it but it asked for his Apple ID how can I get around that?
    Read this: Find My iPhone Activation Lock: Removing a device from a previous ...

  • I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    Click here and follow the instructions. If they’re not applicable, buy an iWork 09 DVD from a source such as Amazon or eBay.
    (116937)

  • HT2240 i already bought a quicktime pro version but lost the key some how. how can i get back that key, without buying a new one?

    i already bought a quicktime pro version but lost the key some how. how can i get back that key, without buying a new one?

    thank you Malcolm J. Rayfield for your replay. but this didn't help, because i bought the "pro" bevore that.

  • I have lost my iPhone 5. How can I get photos that are backed up on iCloud?

    Hello,
    I have lost my iPhone 5. How can I get photos that are backed up on iCloud?
    Thanks!

    I wish, essentially you have an image file of your personal information integrated with parts of IOS in the cloud server. If you had it on your computer - you could use one of the software extractors (bunch with google search, paid and free). From icloud server it can be restored to other iphone, ipod touch, ipad - then backed up or imported to computer for you. Then that other device can return to your friend or family member. That is the only way I can think of.

  • How can I get recordings that are less than 96 kbps onto my iPhone if I am using iTunes Match?

    I am using iTunes Match but it won't upload any files that are recorded at less than 96 kbps. I have recordings from several classes that I am taking online that I need to listen to on my iPad and iPhone. How can I get them on my devices? Do I just have to turn Match off and do it manually like before? Or is there a way to change the recording level in GarageBand?

    I found the answer. Just double click on the recording in iTunes and select Create AAC Version. Then select Update iTunes Match under the Store tab. The recordings will now show up and play on your other devices.

  • How can I get objects of multiple instances of InDesignServer

    Hello,
    We need to have InDesignServer running in more than one configuration. And we need to script them. So to keep easy let's pretend there are 2 instances of InDesignServer running. One startet with 'indesignserver -configuration conf0' and the other started with 'indesignserver -configuration conf1'.
    So we try (Visual Basic):
    dim myIndApp0 as InDesign.Application
    dim myIndApp1 as InDesign.Application
    myIndApps0 = CreateObject("InDesignServer.Application.CS2")
    myIndApps1 = CreateObject("InDesignServer.Application.CS2")
    But both objects referring to the instance with conf0. How can we get an object of the second instance?
    We tried to solve this using System.Diagnostics.Process.GetProcesses(). So we got both processes. But did not find a way to get an object of class InDesignServer.Application by using an object of System.Diagnostics.Process. Any ideas about that way?

    Hi Ian,
    The problem is not to start different instances. In the Windows Task Manager and the console output of InDesign Server I can see, that both instances are running with different configurations. When I use Systems.Diagnostics.Processes.GetProcess() I get both processes too.
    But I don't know how to get objects of both instances using the Interop Assembly or (as a runaround) how to cast an object of System.Diagnostics.Process into an object of InDesignServer.Application.
    When you talking about SOAP, do you know how to start InDesignServer twice with diffrent ports from inside VB and getting the InDesignServer.Application objects of it?
    This should be solve our problem too.

  • How can I get file from multiple instance using file adapter

    Hi.
    Our system(PI7.1) have three application instances running with each physical servers.
    We use sender file adapter.
    The file data is sent to one of the servers.
    Now, how can I get the file using three file adater?
    Should I put the file "sapmnt(\usr\sap)" .
    Or are there another solution?
    regards,

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

  • HT1689 Im having a problem purchasing additional storage the 20GB for $40.00 it keep showing me an error how can i get pass that.

    Im having problem purchasing additioal storage the 20GB for $40.00 it keep showing me an error message, how can i get pass it.

    Is this for iCloud?

  • How can I get rid of multiple versions of the iTunes Folder

    I am using Windows 7 and iTunes 12.1.1.4.  Multiple iTunes folders have been created on my computer (on both my C: drive and my D: drive under Users and My Documents) and they all have different content.  Some albums show up in one instance of the iTunes\iTunes media\music folder and some show up in another.  How do I get all the content synched up?  Can I simply drag and drop all these iTunes folders into D:\My Documents\My music\iTunes (the D: drive being where I store all my documents and photos) and then delete the rest of the iTunes instances?

    Several remedies may apply:
    For media files that are correctly linked from your iTunes Library, i.e., they will play without reporting something like this:
    you can make sure that everything is contained within your main iTunes folders by selecting File > Library > Organize Library... and when you get this prompt:
    check the Consolidate files box and, if not greyed out, the Reorganize files ... box and then click OK.  This will move any media files that are in other locations to the folders under the setting in Edit > Preferences > Advanced:
    This is the location of your media folder.  By default, this will be C:\Users\username\Music\iTunes\iTunes Media, where your iTunes database (the iTunes Library.itl file) is stored in C:\Users\username\Music\iTunes.  In general that relationship between the database and the media folders should be preserved - in the example above the complete library is stored on a external drive, with the database in K:\iTunes and the media folder location being K:\iTunes\iTunes Media.  Note that this setting doesn't tell iTunes where to find media files (that info is embedded in the database); rather, this setting determines where new media is placed within the media folders.
    Checking this causes iTunes to automatically place media in folders, and (re)name media files, based on the metadata associated with the files.  For music this means that everything will be in folders following the pattern iTunes Media\Music\artist_name\album_title and files to be named using the disc number (if present), track number and song name.
    Checking this makes iTunes copy all new media into the media folders, independent of the method of adding it.
    Second case ...
    For songs that are listed in your library but you do get the "missing file" error, right-click on one of these songs - there will be a "(!)" symbol next to its name, right-click > Get Info.  When you get this prompt:
    click No (there's a bug in iTunes 12 such that you actually have to click No twice).  Then go to the File tab and look for the Location information - sometimes you have to scroll down or expand the editor window to see it.  You'll see something like this:
    The "file://localhost/" prefix indicates that iTunes can't locate the file.  The rest of the entry is the path to the file that iTunes holds in its database, i.e., where iTunes "thinks" the file is.  This may be enough of a clue to determine where it actually is - close the editor, right-click > Get Info again, but when you the "... cannot be located ..." prompt click Yes then navigate to and select the correct media file.  In many cases iTunes will then be able to adjust its location info for other songs.  Otherwise there are a number of techniques that you can use to track down and repair these broken links - often using scripts running against the iTunes database.
    ... and the third case:
    If you have folders that are labeled as "iTunes" but their content doesn't appear in your library within iTunes itself, add these to the library by any of these methods:
    select File > Add Folder to Library... then navigate to and select the folder(s) containing the "missing" albums/songs
    drag and drop these folders from Windows Explorer into iTunes
    copy these folders into iTunes' Automatically Add to iTunes folder
    Once you've been through these steps its probably worth running the Consolidate Library process again to make sure everything's in the right place.  Once you've checked that to be the case, you can delete any stray "iTunes" folders that are outside the hierarchy rooted in the folder where your database and your standard iTunes Media files are located.
    Two final points:
    Moving files and folders around yourself never fixes anything in iTunes - in most cases it'll only make things worse by creating (more) broken links
    A couple of turingtest2's valuable user tips also apply here:
    Make a split library portable describes the optimal layout for an iTunes library, easing the processes of moving it between computers and maintaining a backup of it, as well as the steps needed to bring a library into that shape
    Backup your iTunes for Windows library with SyncToy describes a suitable/recommended method to create and maintain a backup ... when you've gone through the effort to make your library just exactly perfect you don't want to lose it all as the result of a virus, hard disc crash, or other fatal failure!

  • How can I get contacts that were put on by the phone to the sim?

    I have about 100 contacts, about half of which were already on the sim card and the other half were added using the phone. I just got a new macbook and now I'd like to restore my iphone so everything is synced with this computer. How can I keep all these contacts without writing them all down. It'd be nice if I could just sync them all to my sim card then import them later but i don't think i can do that. Any suggestions?

    The iPhone cannot write contacts to the SIM card like other GSM phones; however, it can read contact from a SIM card.

  • Without warning when I write an email, I can only send to 1 recipient. How can I get back to multiple recipients?

    I have been using Thunderbird for several years now and this is the first time I have had something like this happen. Yesterday, when I tried to send an email to several individuals I was no allowed to do so.
    After typing the first name in I could not generate another "To" line for the 2nd recipient.
    How can I restore Thunderbird to working properly short of uninstalling and reinstalling?
    Paul

    What are you trying to do after filling out the first address field?
    Hitting Enter or Return will generally create a new field.
    You can also move your mouse to the divider line under the subject field and when it becomes a double headed arrow, left click, hold and drag down to reveal move fields.
    Go into the config editor and tell us what is in the addresswidget field.
    From the menu bar select Tools-Options-Advanced-General
    Click Config Editor and promise to be careful
    type addresswidget in the search field.
    This field specifies how many address fields to display when opening a Write window but has nothing to do with keeping you from hitting Enter to keep them coming.
    You right click the addresswidget line and select Modify to change the default value which is 3.

Maybe you are looking for