How to solve ' object required: 'idMeasurementUnits' "error.

Hi all

I do the Indesign CS4 VB script, in which I try Horizontal and vertical value measurenment uints inches.

The code I used as follows,

Set myInDesign = CreateObject ("InDesign.Application.CS4")

The value of myDocument = myInDesign.Documents.Add
myDocument.ViewPreferences.HorizontalMeasurementUnits = idMeasurementUnits.idInches
myDocument.ViewPreferences.VerticalMeasurementUnits = idMeasurementUnits.idInches

Note that, when I run this script via the command prompt, it gives the following error

«Object required: «idMeasurementUnits»»

and when I run the script above the Indesign script Panel, then it works fine.

But this is my requirnment to run the script through command prompt.

So please let me know if someone has an idea how to solve this error.

Kind regards

Jitendra

It is an enum:

Enumeration

MeasurementUnits

The unit of measure.

The value that you are looking for is

MeasurementUnits.INCHES 2053729891

Tags: InDesign

Similar Questions

  • HOW TO SOLVE: OBJECT VARIABLE OR BLOCK VARIABLE NOT THE VALUE

    Please, I'm trying to snap the passport of students using my pc webcam to a program that I use to register candidates for the exam. But as I break their passport, I had this object variable of error message or with block not set. Please tell me how to configure object variable or block variable. Tell em how to fix this error.

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you get an error message.

    I suggest you to refer to the Microsoft Help Article below and check if that helps.

    https://msdn.Microsoft.com/en-us/library/5szkzs17.aspx

    You can also check:

    https://msdn.Microsoft.com/en-us/library/aa264506 (v = vs. 60) .aspx

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • How to solve "Operations Active Directory error" Messages

    Get this message while trying to join a 6 ESXi host to a domain.  I see a lot of KB articles, advice, forum entries, etc. on how to solve specific problems, but is there a place recommended to start with the log files on the host computer that will give me the best information to get to one of these "specific problems"?

    Here is what may be the problem.  VMware support asked for newspapers similarly and ESXi, once again, so I went back to the article that explains how to configure logging for the same agent (1026554) to refresh my memory on getting set up.  What I found was that the article had been updated this week (02/06/15).  Under section 6.0 ESXi, it seems that there is now a new step that says "start the lwsmd service by running this command:

    /etc/init.d/lwsmd start

    I can never remember this action before when I went through this process, but, after the start-up of this demon, I could join all the areas he had not previously on.  (Or it seems that the daemon has not been started messages that I got when I ran the command).  If this condition of service could be a known problem that must be corrected in a future update, where the service should be configured to run at startup, or to start and stay on every time that a domain join is requested.

    In addition, there is another article that says that you must set this service starts automatically using

    chkconfig lwsmd on

    who could have the root cause of why it wouldn't start whenever I rebooted the host.  Being that this is a very low level of service, I would have not had any idea whether or not it was executed.

    Now all this can be completely off the mark and may or may not work for everyone, but I can certainly say that the host joined after I manually ran the startup script of the service on the host computer, after not being able to reach via many other troubleshooting actions.

  • How to solve '1801 Microcode Update error' in HP Compaq dc7800 Convertible Minitowers

    I have Intel Core 2 Duo 2.93 GHz. My operating system is Windows 7 Ultimate x 64.

    Hello:

    The E7500 processor is not supported in the dc7800, reason why you get the error of microcode.

    Here is the list of supported processors.

    Intel Core 2 Duo processors:

    Processor Intel Core 2 Duo E4500 (2.20 GHz, 2 MB L2 cache, 800 MHz FSB)

    Processor Intel Core 2 Duo E4600 (2.40 GHz, 2 MB L2 cache, 800 MHz FSB)

    Processor Intel Core 2 Duo E4700 (2.6 GHz, 2 MB L2 cache, 800 MHz FSB)

    Processor Intel Core 2 Duo E6550 (2.33 GHz, 4 MB L2 cache, 1333 MHz FSB)

    Processor Intel Core 2 Duo E6750 (2.66 GHz, 4 MB L2 cache, 1333 MHz FSB)

    Processor Intel Core 2 Duo E6850 (3.0 GHz, 4 MB L2 cache, 1333 MHz FSB)

    Processor Intel Core 2 Duo E7200 (2.53 GHz, 3 MB cache L2, FSB to 1066 MHz)

    Processor Intel Core 2 Duo E7300 (2.66 GHz, 1066 MHz FSB, L2 cache 3 MB)

    Processor Intel Core 2 Duo E8200 (2.66 GHz, 6 MB L2 cache, 1333 MHz FSB)

    Processor Intel Core 2 Duo E8300 (2.83 GHz, 6 MB L2 cache, 1333 MHz FSB)

    Processor Intel Core 2 Duo E8400 (3.00 GHz, 6 MB L2 cache, 1333 MHz FSB)

    Processor Intel Core 2 Duo E8500 (3.16 GHz, 6 MB L2 cache, 1333 MHz FSB)

    Inter Processor Core 2 Duo E8600 (3.33 GHz, 6 MB L2 Cache, bus front end to 1 333 MHz)

    As a long shot, you can try to install the latest firmware update. You must use a bootable USB key with back files in order to run the flashbin.exe command after copying the microcode update files in your USB drive bootable.

    I can't support dc7800 site. When you can, choose the 2010 v1.14 firmware update download

    If you are unfamiliar with how to make a bootable flash drive, this is a good 'how' of the article with the files you need.

    http://www.techpowerup.com/forums/showthread.php?t=47812

    Paul

  • Satellite Pro 4290: How to solve the problem of error IDE #1

    I recently purchased a DVD - ROM drive to put my optical drive Sat Pro 4290 a CD in DVD - ROM. As suspects, I am the problem if the drive is not recognized and get error IDE #1.

    I can get windows XP to recognize the disk by deleting the secondary IDE channel in the material and then look up the new material again. Then installs the IDE channel and then detects and installs the DVD-ROM and works very well. I restart the computer laptop and back to square one!

    I understand that it is something to do with the settings of the motherboard and someone has solved this welding pins in different locations on the IDE connectors.

    I don't want to risk it and I was wondering if anyone finds an easier way to do it?

    Thank you very much

    Hello

    > I understand it's something to do with the settings of the motherboard and someone has solved this welding pins in different locations on the IDE connectors.

    Set to true if not 100%. This isn't a matter of adjustment on the motherboard, but the setting of the CD/DVD drive.
    The Player supports different master\slave\c-salt settings and if they are not compatible BIOS does not correctly recognize drive.

    On external hard drives (for desktop) it s possible to change these settings by changing the jumper, but it is not possible for readers portable slim.
    Portable settings are stored in the firmware!

    I found various non-legal tools that can change the master/slave/c-salt settings but I wouldn't recommend using it.
    The risks are too high so that the reader will have some damage.

    So, try to replace the drive with a compatible

  • SOLUTION - how to solve the problem of error TOS0002

    Hello

    I had a problem with tos0002 error starting after the persistence of image on a new drive.
    I solved by copying the BOOTSECT. BAK from the disk of Vista on the C: drive.

    I just copied and kept one you can with Vista, but I guess that's maybe similar with XP.
    I reinstalled the Qosmio on the respective disc player.

    I hope this helps someone because I passed the age trying to find a solution.

    Thanks for this information, Emma.

    It of always nice to see people who post useful solution proposals

    Welcome them

  • How to solve the ADE DRM error on a kobo?

    I have a new 'KOBO Glo HD' and I correctly auth my computer and device and can copy books from my library to the device error, however, it stops there and I get the following error on the device. I deleted the software (not done the registry thing) I deauth and reauth my computer and the device closer to the limit, I am sure and have not yet READ 1 book on my kobo. Protected by DRM? No it's not protection...

    BTW, only support for ADE is chat and forums and the person at the end of the chat sent me on the forums, I think they need to disable the CHAT support if your response will not be to refer to the forums.

    Someone encountered this and solved it? Is really annoying...

    ADE.jpeg

    After about a week of fighting with this problem, I realized the solution myself,

    Contacting KOBO... no help

    Chat with Adobe... mentioned here...

    Solution, use ADE 3.0 and do not use ADE 4.x

  • How to solve the problem of error 0xC004F063

    My result of Microsoft Genuine Advantage Diagnostic Tool:

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation code: 50
    Code of Validation caching online: 0x0
    Windows product key: *-* - Q6MMK - KYK6X-VKM6G
    Windows Product Key hash: 289NoAWl2ZoVfuieux/315WkDIc =
    Windows product ID: 00426-OEM-8992662-00173
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.1.7601.2.00010100.1.0.001
    ID: {4C53F51D-AC7A-4972-9342-601F4423FF8B} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Ultimate
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.120503 - 2030
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a
    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002
    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002
    OGA data-->
    Office status: 103 blocked VLK
    Microsoft Office Excel 2007-100 authentic
    Microsoft Office PowerPoint 2007-100 authentic
    Microsoft Office Word 2007-100 authentic
    Microsoft Office Enterprise 2007 - 103 blocked VLK
    Microsoft Office Project Professional 2007-100 authentic
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005
    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x86)\google\chrome\application\chrome.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed
    Analysis of file data-->
    Other data-->
    Office details: {4C53F51D-AC7A-4972-9342-601F4423FF8B}1.9.0027.06.1.7601.2.00010100.1.0.001x 64*-*-*-*-VKM6G00426-OEM-8992662-001732S-1-5-21-1317999403-3232297760-103190465Dell Inc.         Dell XPS L502X systemDell Inc.
    .         A06 20110720000000.000000 + 000331F3507018400FE04090409SE Asia Standard Time(GMT+07:00)03DELL QA09 103100Microsoft Office Excel 2007123AB862DE70D8D86UfpXsJvSSVcPufbDdjd0NK73 ug plus89385-707-4159871-6375014100Microsoft Office PowerPoint 2007123AB862DE70D8D86UfpXsJvSSVcPufbDdjd0NK73 ug plus89400-707-4159871-6366914100Microsoft Office Word 2007123AB862DE70D8D86UfpXsJvSSVcPufbDdjd0NK73 + ug =89407-707-4159871-63052 14 103Microsoft Office Enterprise 200712ACD7202654E586fFic3JgCreGGRxyF8uMWB4R4Jcg =89388-707-1528066-6553014 100Microsoft Office Project Professional 20071228E1B0B3713E6BAM6s/hYsCHJZ2ikgLDt295DHw7GI =84889-861-5016925-638508  
    Content Spsys.log: 0 x 80070002
    License data-->
    The software licensing service version: 6.1.7601.17514
    Name: Windows 7 Ultimate edition
    Description: operating system Windows - Windows (r) 7, channel OEM_SLP
    Activation ID: 7cfd4696-69a9-4af7-af36-ff3d12b6b6c8
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00426-00178-926-600173-02-1033-7601.0000-3562012
    Installation ID: 001322856281796875683956468922152470295420621336310326
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/
    ? LinkID = 88340
    Partial product key: VKM6G
    License status: Notification
    Notification reason: 0xC004F063.
    Remaining Windows rearm count: 3
    Trust time: 21 December 12 14:45:18
    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: 0xC004C533
    Beyond: 0 x 0000000000000000
    Event timestamp: 12:21:2012 14:24
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:
    --> HWID data
    Current Hash HWID: NAAAAAEAAgABAAIAAAABAAAABAABAAEAln1aTCKviOoorSg6dIgMxibURjJsmVDBvhMucw ==
    Activation 1.0 data OEM-->
    N/A
    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20001
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC DELL QA09
    FACP DELL QA09
    HPET DELL QA09
    MCFG DELL QA09
    QA09 DELL SLIC
    SSDT DELL PtidDevc
    ASF
    ! REFERENCE DELL QA09
    SSDT DELL PtidDevc
    SSDT DELL PtidDevc
    SSDT DELL PtidDevc
    UEFI DELL QA09
    UEFI DELL QA09
    UEFI DELL QA09

    You buy a genuine Windows 7 license. The copy of Windows 7 Ultimate, you have installed is an OEM SLP license that should only be preloaded with a new PC. You seem to have installed a copy of Windows 7 Ultimate that uses an activation exploit that bypasses the product activation.

    In addition, he is a well known Windows 7 Ultimate license which has been used all over the web:

    Windows product key: *-* - Q6MMK - KYK6X-VKM6G

    Do a search on the web.

    Thus, you must either charge your version of Windows that came on your computer or consider purchasing a license of Windows 7 genuine.

    Windows 7 - version comparisons:

    http://Windows.Microsoft.com/en-us/Windows7/products/compare-editions

    MS Windows 7 store price:

    http://store.Microsoft.com/Microsoft/Windows-Windows-7/category/102

    In addition, your Microsoft Office is not genuine:

    OGA data-->
    Office status: 103 blocked VLK
    Microsoft Office Excel 2007-100 authentic
    Microsoft Office PowerPoint 2007-100 authentic
    Microsoft Office Word 2007-100 authentic
    Microsoft Office Enterprise 2007 - 103 blocked VLK
    Microsoft Office Project Professional 2007-100 authentic
     
  • HP Compaq dc7700p: how to fix '1801 Microcode Update error' HP Compaq dc7700p Convertible Minitowers

    Hello

    I read and read this post for a few times and I'm not sure it will work on my PC so I have to ask, how to solve '1801 Microcode Update error' in HP Compaq dc7700p Convertible Minitowers I upgraded it with E7200 instead of the original E6300

    Here is the product number: p/n RN120ET #UUZ

    I am in a position to start and start windows, I don't know is that it works normally or not, I'm just bored with the startup message:

    Please HELP and thank you in advance!

    Hello:

    You must upgrade the BIOS to version to get rid of the error of microcode, and processor at half the speed of the FSB only works because the update of the BIOS was not written for the E7xxx processors work correctly.

    You will need to run this software whenever you enter windows and change the multiplier up.

    Or you can run this batch file listed on the bottom of Web page so that it runs automatically.

    http://CrystalMark.info/software/CrystalCPUID/index-e.html

    If I were you, I just install an E6700 Conroe and have an update without problem.

    You will need to use the BACK base flash because I don't think that there is an update of the BIOS written for W7.

  • I get this error message and don't know how to solve: 3D features require a minimum of

    I became a Photoshop CCmember today. I don't know what to do about this error message: the 3D features require a minimum of 512 MB of vRAM. Photoshop has detected less than on your system. Update your graphics card driver may solve the problem.

    Hey...

    I had the same problem and I solved it somehow...

    Please check out my youtube video how I solved this

    http://bit.LY/vRAMerror

  • Error message "install" is damaged and cannot be opened. You must eject the disk image. How to solve that this tried 12 times on a Mac with El Capitano

    I am trying to download Photoshop CS5 Extended on a new iMac to replace my old version of Windows. I downloaded 12 times and once I open the program installation an error message 'installation is damaged and cannot be opened. You must eject the disk image. Any ideas how to solve the problem please.

    Hello

    Photoshop CS5 is not compatible with MAC El Capitano, which is the version OS x 10.11. Please access the link as follows to check the system requirements for the installation of Photoshop CS5, which is MAC OS X 10.5.7 or v1.06.

    Configuration of Photoshop

    Thank you.

  • How to solve the "metric Errors Collection"?

    Hello

    Some targets were not working. I erased the blackout. These were then "_pending state_" for awhile. Now that the Oracle Application Server shows in a pending state and its objectives as OC4J, OC4J JVM, Oracle HTTP Server shows "_Metric Collection Errors_".

    So, how to solve the error?

    Thanks in advance.

    I assume you mean that you don't have access to the Agent log files? ;-)

    You can try to select the HTTP server in the tabs of all targets and press on [configure] and make sure that all of the eigenvalues are there and say [OK] to save the data.

    Concerning
    SoC

  • Updated the macbook pro of el capitan and now will not start. Instead, I get the error message "your computer restarted due to a problem". Someone at - it suggestions on how to solve this problem?

    Updated macbook pro today for the latest version of el capitan and now will not start. Instead, I get the error message "your computer restarted due to a problem". Someone at - it suggestions on how to solve this problem?

    It would be helpful to post what the screen says.

    -Try to reset memory NVRAM/PRAM and SMC

    MacIntel: Reset of the controller (SMC) system management

    https://support.Apple.com/en-us/HT201295

    Subject of memory NVRAM and PRAM

    https://support.Apple.com/en-us/HT204063

    -Try to start safe mode

    OS x: what is Safe Boot, Safe Mode?

    https://support.Apple.com/en-us/HT201262

    -Start to recovery and repair the startup disk

    OS X: on OS X Recovery - Apple Support

    https://support.Apple.com/en-us/HT201314

    -If it is repairable reinstall the OSX

    How to reinstall OS X on your Mac - Apple Support

    https://support.Apple.com/en-us/HT204904

    -If you do not have a backup using disk utility to restore the internal drive to an external drive, so that you can try to recover the data.

  • How to solve error HRESULT: 0 * 8007054f?

    How to solve error HRESULT: 0 * 8007054f?

    On which Mac or your mobile device, with which operating system?

  • When I run Mozilla Firefox I get the error message "ReferenceError: Globalstorage is not defined." How to solve this problem?

    When I run Mozilla Firefox I get the error message "ReferenceError: Globalstorage is not defined." How to solve this problem?
    -Vinayak

    GlobalStorage is no longer supported in the current Firefox (removed in Firefox 13), versions so the extension or Web site that uses it needs an update and use localStorage instead.

Maybe you are looking for

  • Transfer data from PvZ 2 old iPad2 again

    My son got an iPad 2 that he used to play Plants vs Zombies 2: it's all the time. He made a lot of progress and has also made several purchases in the game. Last September, he got a new iPad Air but when we loaded the game all its previous purchases

  • Using Zyxel wireless network configuration

    Using Panel to have Windows configure my system to use a wireless connection to internet via Zyxel USB. Using Windows options, network, Network Setup and configuration of wireless network connection me don't upset none the case. I understand there is

  • A screen popup menu is opened after the closure of the dialog box

    Hello I have a test application with a screen containing a button. When I click on the button (pressing the button on my BlackBerry 9220 trackpad), it opens a dialog box. Then when I press ESC to my BlackBerry 9220, it closes the dialog box and I'm b

  • Blue screen error STOP: 0x0000000A

    STOP: 0x0000000A irql not less or equal bvluescreen 1055 whats up? What's new?

  • 1230AG Omni antenna.

    Can I use two Omni directional ceiling mount AIR-ANT1728 for a 1230AG Aironet (AIR-AP1232AG-A-K9) if so, when and how? THANX HASSAN