Set unit preferences (Javascript)

I can't find a way to set the unit preferences for Illustrator CS6/CC using JavaScript.
I found that this works (setting units for stroke):
var units = 2; // 0-inches, 1-milllimeters, 2-points
app.preferences.setIntegerPreference("strokeUnits", units)
But I want to set the ruler units ("General" in the interface), and this does not work:
app.preferences.setIntegerPreference("rulerUnits", units)
Any help?
Peter

Ten,
Yes, this works, finally! Thank you very much with this simple but poorly documented feature.
I noticed that the unit mapping is:  0: inches, 1: mm, 2: points, 3: pica, 4: cm, 5: custom, 6: pixels
Regards,
Peter

Similar Messages

  • InDesign CS5.5 won't respect Units Preference

    My Units preferences are set to inches, but new documents are still formatted in points.
    Once the document is created, rulers appear in points, and when I open Preferences again, sure enough, units are set to points.
    Once I change it back to inches, my rulers change and everything is fine, until I create the next new document.
    Looks like a bug to me... or am I missing some new setting?

    So lame that this is still a problem... Glad to have found this thread tho...
    I guess I was lucky because in CC I had set indesign up with no documents open... But when 2014 forced me to re-install i figured all my prefs would follow over... Man was I wrong
    Well I am set up now... But adobe... you guys... should really fix the program so you can change the defaults with out having to do it in a special way... More user intuitive...

  • Set Unit-item in Cube

    Hi
    I take unit-item for other object table.
    and I want to set unit-item in cube.
    but I don't understand where input.
    Please tell me where input part in cube.
    sorry  a little englishskill...

    Hi,
    If you are on Apex 3.x or higher , try
    function getTheCurrentRow(triggerItem){  
    alert( triggerItem.slice(6));
    $s("P4_SELECT", triggerItem.slice(6));   
    /* Alert hidden item value you did set */
    alert($v("P4_SELECT"));
    </script>Here is link to Apex JavaScript API document where you can find functions $s and $v I did use
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CDEEIGFH
    Regards,
    Jari

  • Illustrator - Units Preference Not Remembered

    Is anyone experiencing any issues with the Units Preference not being remembered? Every time I relaunch Illustrator CC 2014 the units reset to Points, I have to go and change it every time.

    Set up your own custom document profiles
    Startup Profiles – A Great tool to Customize your New Documents « Adobe Illustrator blog

  • IMail: How can I set mail preferences to display actual email address and not short names.

    Even though I have it correctly set in Preferences , i.e. "Use Smart Addresses" is unchecked, the addressee automatically changes to the person's name rather than the email address.   I am unable to find a way to display the actual email address option on iMail (Yosemite)  I do not want nicknames/short names but want the actual email address to display on my address line.   Can anyone advise please?

    Thanks, Ernie
    I wasted about 20 minutes looking for it and couldn't find it
    cheers,
    tom

  • Multiple Libraries: 2 sets of preferences?

    When using multiple libraries, is it possible to have a set of preferences for each one? For example: I have an Apple Lossless library which contains all of my music and I’d like to create an AAC library for use with my Nano. When I create a new library and change the importing preferences to 256 AAC, those settings remain when I open my Apple Lossless library.

    i got it. duh.

  • I just bought a new MacBook Air. In my old one, I could go from screen to screen by using three fingers to swipe over the key pad. This one just sits there. It is Yosemite. How do I set up preferences so I can use three fingers to move from screen to

    I just bought a new MacBook Air. In my old one, I could go from screen to screen by using three fingers to swipe over the key pad. This one just sits there. It is Yosemite. How do I set up preferences so I can use three fingers to move from screen to screen?

    Those choices are controlled via System Preferences, Trackpad.

  • Is there a way to set a preference for image resolution in PSE10?

    Once I transfer image files from the camera to the Organizer (PSE10), they are listed in the information panel window as having a resolution of 180.  I use the printer  more than the internet for these files, so I really want the resolution to be 300 or above, and would like to set a preference to that effect.  I know that I can resize them individually, or by a group, but I'd like to get the resolution set properly in the first place rather than adding yet antoher setp in my post processing efforts.  I am assuming that the resolution is set by PSE10 because I can't find anywhere in the camera's (Canon Powershot SX40 HS) user manual that mentions that the camera sets a resolution.  Is there some way that I can adjust the resolution that PSE10 assigns the images when they are imported into the Organizer?  I'm using Windows 7 with 12GB Ram.  Thank you very much.

    Thank you very much for the info.  I certainly appreciate it.  I’ve been looking everywhere I could think of for how the resolution gets to be 180, and couldn’t find it.  I wish they’d have something in their manual about that.  Your info helps tremendously.  Thanks again..

  • Saving a Pages document: when I first save a pages document it saves and I don't know where it goes or what its name is.  I want to be asked every time I save a pages document what to name it and where to save it. How do I set this preference?

    Saving a Pages document: when I first save a pages document it saves and I don't know where it goes or what its name is.  I want to be asked every time I save a pages document what to name it and where to save it. How do I set this preference?

    I'll guess that you've used a page layout document & pasting created a text box. You can add more pages & create linked text boxes, but I think you'd be better of using a word processing document. In word processing documents there is a basic text layer & additional pages will be created as needed to fit the text. Take a look at the toolbar of your document. If it says "sections" for the +page icon it's a word processing document, if it says "pages" it's a page layout document.

  • How can I set my preferences to allow to open photos that were sent to me

    How can I set my preferences to allow to open photos that were sent to me?

    Safari > Preferences > General > Open "safe" files after downloading

  • My iPad reads in Hebrew instead of in Norwegian, even though I have not set my preferences to do so, how do I get it to read in Norwegian again?

    My iPad reads in Hebrew instead of in Norwegian, even though I have not set my preferences to do so, how do I get it to read in Norwegian again?

    Look here for help.
    iOS: How to change the language when it's set to one you don't ...

  • How do I set my preferences to open most recent catalog?

    I'm running LR 4.1 with ACR 7.1 on a Windows 7 64 bit OS.
    I set my preferences to open most recent catalog.
    I then open another catalog and do some stuff in the catalog but when I start LR next time it keeps going back to a different catalog. How can I change the settings so it either opens the most recent catalog or I get prompted for which catalog I'd like to open (I've tried both settings) and LR still keeps opening the same catalog.

    In the same dialog that your screenshot shows select as per this screen shot:
    Your setting should open the catalog you most recently worked with. If you work on catalog A, then open catalog B, with your settings Lr will open with catalog B the next time.

  • Set User preferences in oracle portal’s database in portal environment

    Hi All,
    I need to set User preferences in oracle portal’s database in portal environment.
    I need to get some oracle PL/SQL API for the said purpose.
    In user preferences I need to save Preference name and preference value.
    Can any one have idea?
    Regards
    Amit Tiwari

    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/index.html
    and http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwpre_api_name.html
    Patrick.

  • How we do set resolutions in javascript to develope a game in unity 3d

    how we do set resolutions in javascript to develope a game in unity 3d

    If you're not talking about JS in PDF files, this is the wrong forum for
    your question.

  • Planned order are showing in PWB even outside the View Recommendations for (Days from Today) set at preferences

    Hi
    We have set PWB preferences View Recommendations for (Days from Today) as 10days,
    But in supply/demand the datas are showing outside this time limit.For example if I saw today (04-Nov-days),only 10days from today suggested order dates order should show.But it is showing even orders in dec also.Any setup we mssed?
    Please guide us
    Regards
    VKPK

    Hi
    We have set PWB preferences View Recommendations for (Days from Today) as 10days,
    But in supply/demand the datas are showing outside this time limit.For example if I saw today (04-Nov-days),only 10days from today suggested order dates order should show.But it is showing even orders in dec also.Any setup we mssed?
    Please guide us
    Regards
    VKPK

Maybe you are looking for

  • SPOOL_INTERNAL_ERROR short dump while running RBDAPP01

    I recently encountered this run-time error when processing IDOCs. The IDOC message type was WMMBXY, if that helps. We have been using this message type and have been processing thousands of these transactions for years, and this just suddenly happene

  • Text Flow around objects

    I have a two-column book with photographs/diagrams of different sizes. On occasions where these extend into the second column, the text flow is often uneven across the two columns. I can get the text in the right hand column to move down, but not the

  • Live Office Document not opening in Excel

    Post Author: fblau CA Forum: Xcelsius and Live Office I have installed Live Office and I can connect to my CMS and my reports are visible. When I try and import one it goes through several dialogs of "Importing Report" and "Updating Data" but then it

  • Put field synopsis in brief area and full text in detail area

    I have been making some dynamic sites recently and had a question about only pulling the first couple lines of data from a field in the summary page and showing the full text on the detail page. Currently, i make 2 fields, a brief field and a detail

  • Disabling menu option

    Hi,     I want to disable the menu option dynamically for certain condition, can anybody please say the procedure. Thanks in Advance