[CS2] [VB] How can I determine the type of object to a PageItem?

I use InDesign CS2 and VBScript

Loop to the bottom of the PageItems in a Page, I need determine the Type of object (TextFrame, group, GraphicLine... each process) and PageItem accordingly.

Is there a method/function VBS wiil returns the Type of an object as a string or a value. Or what I need to check the existence/non-existence of a particular property associated with a particular object for this type?

Alternatively, is there a JavaScript function that will do what I can call VBScript?

For the record: TypeName is what you need.

For example, when the cursor is planted in the text return TypeName (Ind.Selection (1)) 'PointInsertion.' When a text block is selected, it returns "TextFrame.

Tags: InDesign

Similar Questions

  • How can I determine the type of image to be used before loading an image?

    I'm developing an application using VB 2005 which measures two 8-bit or 16-bit image files. When I saw the picture, I find that I have to set the type of image the image buffer before playback of the image in it. For example, if I read a 16-bit image in a buffer of 8 bits, the image is truncated. I guess I could read the image in a 16-bit buffer and retype it if the pixel values are less than 255.

    Is there a better way to do it? Can I determine the number of bits of an image before loading in a buffer?

    Thank you!

    Hi Steverino,

    Olivia is incorrect... VDM has a function called GetFileInfo which does just what you want. It only reads the header of the image but does not load the entire image in memory. It will give you various properties such as the bit depth.

    I think that on the new .NET support, there can exist here: NationalInstruments.Vision.Analysis.Algorithms.GetFileInformation.

    Thanks to the ICB and our legacy of .NET support, it's probably a similar name.

    Eric

  • How can I determine the type ESXi 4.1 installation source image?

    Hello

    I have a host ESXi 4.1 running on HP hardware. Y at - it no way of knowing if it was installed using custom HP image or generic VMware image?

    Thank you

    Michael.

    The other way would seek to "show support information" in the screen DCUI ESXi. I see this page is changed when versions of server providers the VMware ESXi on measurement of images.

    Thank you

    Krishnprasad

  • How can I determine the number of contacts that I have

    How can I determine the number of contacts that I currently have on my iphone

    I don't know of a way on the iPhone, but if you have a Mac, you can go to the Contacts (platform) app and scroll to the bottom where you will find the total.

    Same for iCloud.com on your browser, go to the app, scroll down.

  • How can I determine the size of the files and photo albums?

    How can I determine the size of the files and photo albums?

    It is not really in any way, nor is it necessary-what you trying to accomplish?

    LN

  • How can I determine the version of Toshiba Assist?

    How can I determine the version of attribution that is installed on my Satellite X 200 with Windows Vista Premium SP 1AA. Operating system?

    Go to the control panel and start the option programs and features.
    After full load, you will find listed Toshiba Assist it.
    Click on it and on the bottom, you will find information about the version of publisher, size and product.

  • How can I get the type of coverage to work

    type of coverage

    How can I get the type of coverage to work

    Hi Ted,

    Once you take the type of coverage, it's ready to go!

    You are in a place to type in information?

    Once it is aligned, it works like a regular keyboard.

    B Eddie

  • How can I change the type of image file to download on a site like walmart or walgreens for printing?

    How can I change the type of image file to download on a site like walmart or walgreens for printing?

    In general, they will accept the image in the format, that it was taken (if it was taken by the majority of cameras or cell phones).  But if so, you have a few options.

    The most simple and integrated solution is Microsoft Paint.  Yes it is from the 1980s, but it still works and changes of a good job for a time.  Just to right click on the photo file, choose open with and choose paint.  Then go to file > save as and save this return as the file type you want it to be (like PNG or BMP or JPG, quality declining in the JPG option).

    If you need more options like changing the quality he uses during conversion, another free option (of the very very many) is Paint.NET, an open source free image editing program. http://www.dotPDN.com/downloads/PDN.html

    There are also programs that can do it in bulk, so you can highlight 300 photos and do convert them all at once.  You can do this for free or with tools like Photoshop.

  • How can I get the type of device in ESXi5?

    In ESX or ESXi4, use dmicode | grep 'product name'-i to get the type of device. But this command is not found in ESXi5. So, how can I get the type of device in ESXi5? Thank you.

    The dmicode | grep 'product name'-i train ESX4.1 as follows:

    [root@host22 ~]# dmidecode | grep -i "product name"
     Product Name: CN21UPSA  
     Product Name: CN21UPSA

    Try the simple way: "esxcli hardware platform get."

    / Rubeck

  • How can you determine the absolute path to a NetStream object created dynamically?

    We strive to implement a video captioning with a freeware component, ccforflash. This requires us to provide an absolute path or relative to our NetStream. How can we determine this path in Flash CS5 AS3?

    CCforFlashCS5 documentation:

    2. objects "name and path.

    Type the name and the path.  It is the name of the instance of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 queries the object with this name for the synchronization information to synchronize subtitles. The path must also be included; be compared to the CCforFlashAS3 (i.e. this.parent) component or the absolute path of the main floor of the film (root)".

    I guess I understand your problem and accepts only a great way to identify a path to something compared to doing AS3 AS2.  I'll see if I can raise the interest of someone else in your ad that is a detective better than me.

    But if I can get stoopid for one minute and suggest trying something (I would try it)... If you have access to the code where is instantiated the NetStream object, just after he is given life, assign the instance to a variable, you have in the main timeline and use this variable (and the root timeline or a 'this' - reference database for path requirement) for your CCforFlashCS5 needs.

  • How can I determine the model of my air to buy a new drive if my oem drive failed?

    My air drive is dead and I need to order a new drive.  How can I determine my air without the drive model?

    Thank you

    C

    I guess you could always turn inside and read the model number is printed on the bottom...

  • Error-50352 DAQmx: How can I determine the maximum size of the buffer?

    I use a card PCI-6259 with DAQmx (version 9.0.2) library and I get the error "-50352: memory cannot be allocated" whenever I try to make my record too long. Here are a few terms that I found:

    1 channel of AI, 1Msample/s: 7.71 sec max

    1 channel AO, 1Msample/s: 7.71 sec max

    1 channel of AI, 500ksample/s: 15,4 sec max

    2 channels of AI, 500ksample/s: 7.71 sec max

    1 HAVE, AO, 1Msample/s 1-channel: 5.6 sec max

    IF I can't acquire more 7.71 Msamples in a single task, be it in most cases, or AO. When you mix tasks HAVE and AO, this limit seems to be decreasing. This happens with a freshly started application, so I don't think that it is a question of compensation task.

    What is a physical boundary with the device? (And if so, how can I determine this limit?)

    My impression is that the device uses DMA to transfer samples to the system memory, which there are plenty - I can easily allocate more than 400 MB of contiguous memory in the same application.

    Hi Luke,.

    The amount of RAM your system installed?

    What operating system do you use? If it is a 32-bit operating system, using 3 GB or increaseuserva? These parameters have a compromise: they reduce the size of the kernel virtual address space. This increases the probability of DAQmx will succeed to allocate memory but do not reach the mapping in the kernel virtual address space.

    Your system has all the devices with very large memory mapped I/O beaches, such as a video card with a large amount of memory on-board? On a 32-bit operating system, this can reduce the size of the virtual address space of the nucleus by a significant amount.

    Brad

  • How can I determine the RAM bus speed?

    Hello

    I installed the new 4 GB RAM replacing the previously installed 3 GB of RAM. The previous 3 GB of RAM has the 667 MHz bus speed (I found it in the user manual). The new 4 GB of RAM, the seller told me that has the 800 MHz bus speed. Now, I want to be sure that the seller does not deceive me, and he gave me the speed of 800 MHz RAM bus. How can I determine my installed RAM bus speed? My system configuration is the following:

    Windows 7 Ultimate 64 bit

    2.1 GHz Core2Duo

    4 GB OF DDR2 RAM

    Intel GMA 4500MHD

    Model: Acer Aspire 5738

    I have two modules of DDR2 soDIMM, previously, I had a 1 GB DDR2 667 MHz + a 2 GB DDR2 667 MHz RAM = 3 GB DDR2 667 MHz RAM (in my manual of the system provided by Acer)

    Now, after replacing, I have two 2 GB DDR2 800 MHz RAM = 4GBD DDR2 800 MHz RAM (as the salesman told me and I saw written in the package when he was unpacking and installation)

    How can I determine my RAM bus speed and be confirm that I really learned the 800 MHz? Please someone help me with this. Thank you.

    Four ways I see real quick:
    1 - the label on the RAM (assuming that it is there, and this truct you he has not changed it).
    2 - install the CPU-Z.  It will be listed in the memory tab.
    3 - install Belarc Advisor.  It also lists only (as well as much more information on the system.)
    4 take a look at the POSITION of the screen when the system boots - he must view RAM info.

    All the foregoing, guess however that isn't only MHz 800 RAM installed, but that the system is actuallyrunning at 800 MHz.
    Here, CPU - Z is the best choice, because it will give you the actual manufacturer for RAM; You can use it to find the specifications of the manufacturer.

    HTH,
    Chris

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How can I determine the order of firstname and lastname?

    I get the name of the contact with the following code.

    BlackBerryContact contact = ...
    String[] name = contact.getStringArray(Contact.NAME, 0);
    String firstName = name[Contact.NAME_GIVEN];
    String lastName = name[Contact.NAME_FAMILY];
    

    But I can't determine the order - "full name, first name" or "first name, last name.
    With my Bold 9700, it can be configured in the Options > language and text input > name display, but I couldn't find a way to get the setting from java code.

    Please help me.

    There is no API for this setting. If you see as important, you could offer it to your own parameters, otherwise just go with the standard.

  • How can I determine the specified VO is updated or not?

    All the

    There are several of your in my AM and the method this.getDBTransaction () .isDirty () returns the true value once the VO has changed but not validation. How can I understand the specific vo to see if it is replaced. I want to add some customization to the specific vo logic in the beforeCommit() method in AM.

    Gerry,

    There is no direct way to do this for a VO.

    For VO lines, however, you can call getEntities() and loops through the entities returned asking them getEntityState().

    John

Maybe you are looking for

  • alarm iOS10

    Before iOS10, when an alarm when I could simply click on 'stop' to end. Now, I have to swipe down to see the "stop". Y at - it a parameter to change it back as if it were?

  • (IWS) international warranty and post-warranty service deposit Thinkplus

    I have a Thinkpad T520 with ' deposit of 1 year post ' bought as an offering of Thinkplus maintenance (my warranty expired and I forgot to extend it). I travel frequently in India. International warranty Service will be applicable in India of this ex

  • How can I record the keystrokes and execute them in Vist?

    My brother-in-law is learning disabled and not computer.  I would like to set up Skype for whatever he has to do is click on an icon and it will connect it to us.  That Vista has a keylogger I can use which will allow to record in an executable file?

  • MFC maintains application stop

    Signature of the problem: Problem event name: APPCRASH Application name: pelite.exe Application version: 1.0.7.1 Application timestamp: 43328c 44 Fault Module name: RealDraw.dll Fault Module Version: 2.0.0.2 Timestamp of Module error: 3c27b3cd Except

  • ADOBE IS THERE A NO HELP!

    I have installed the latest version to my MAC and I can not download an important form of the FDA, because I said that I don't have the latest version. I'm doing a presentation on the food and Drug Administration and ADOBE will not call or email any