Script to set reference point

I need a script to set transform reference point at desired position without clicking in these tiny squares in the selectors, both in control panel or transform palette.
I will bind these scripts to numpad keys with AutoHotKey and will be happy at last.
Help me, please, I have little experience in scripting and see entry for grabbing this task.

Look up Transformation in the references

Similar Messages

  • Set reference point for multiple objects in the middle of the document

    Hello Community,
    I want to mirror a layout.
    So I:
    1. Select all the objekts
    2. Set the reference point to the middle
    3. Mirror the objects
    BUT
    The reference point is the middle of all the OBJECTS. That leads to several objects crossing the border of my document because the layout isn't spread out evenly.
    I want to middle of the DOCUMENT to be the reference point. How can I do that?
    Thanks
    Christian

    Have you fiugured this out on your own?
    I just played around a bit and found a method, but it's not exactly intuitive. Select the object(s), then switch to the Rotate tool. The center of rotation will be defined as one of the transformation handles, but you can drag it to anywhere you like, so move it to the point that you want as the center of your mirror. Hold down the Alt/Opt key, and click the reflect button to make a mirrored copy. Without the modifier key the original objects will mirror their position around the repositioned reference.

  • Set reference point for coordinates

    How to set the reference point for a rectangle in coordiate system using javascript? I want to set this value before setting the geometricBounds property
    Thanks.

    Hi,
    Try this:
    app.activeWindow.transformReferencePoint = AnchorPoint.BOTTOM_RIGHT_ANCHOR;
    Options:
    AnchorPoint.BOTTOM_CENTER_ANCHOR
    AnchorPoint.BOTTOM_LEFT_ANCHOR
    AnchorPoint.BOTTOM_RIGHT_ANCHOR
    AnchorPoint.CENTER_ANCHOR
    AnchorPoint.LEFT_CENTER_ANCHOR
    AnchorPoint.RIGHT_CENTER_ANCHOR
    AnchorPoint.TOP_CENTER_ANCHOR
    AnchorPoint.TOP_LEFT_ANCHOR
    AnchorPoint.TOP_RIGHT_ANCHOR
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • Set reference point in objects and measure distance

    1) How can I set the reference point in objects?
      for example:  
            a) exactly in the center of a pad or a via
            b) exactly in any corner of the board outline
    2) How can I measure the distance of two points with the maximum accuracy?
      for example:
            a) measure the distance between two pads or via
            b) measure the lenght of a line

    dear Semaphore, thanx for your response.
    I already use the ways that you refer me, but like this I can't measure with accuracy, or setting the zero reference is not guarantee that I set it exactly in the center of via or pad.
    With grid seted in smallest option is difficult to target the center of a pad, and also is difficult to target the point in the edje of a line with accuracy. With ruler I also have the same problem, I cant be sure that the ruler is pointing exactly to the center of a via or pad.
    That I need is a kind of a snap option to attach the mouse-cursor exactly in the center of an object, that can help me to target exactly in the center and have an accurate measurement or accurate set the zero reference without mistake.
    Any other suggestion for accurate measurements?

  • Actions which include Set Reference Pt via Transform Panel failing consistently during playback

    The title pretty much says it all. I have two different Windows XP machines, both got upgraded to CS 6 (the x.0.0 release, the Release Notes for the x.0.1 don't directly address this, but if this topic pulls up blank, I may go that route... it requires running an approval gauntlet via IT, otherwise I'd already have done it).
    Repeatable problem is this:
    0. Create and select an object. Even a basic rectangle will do.
    1. Creat a new Action.
    2. Begin recording.
    3. In the Transform Panel, specify a new Reference Point that isn't the lower right (if your machines are like mine, you will get a "double hit" of the same Action step, no matter how gently you click on the new Reference Point). I say "not the lower right" for a reason in a second.
    4. Feel free to make a couple other numeric transforms in the Transform Panel. I tried adjusting Width and Height.
    5. Stop recording.
    6. Undo back to the original state (though I suppose it isn't necessary to deomnstrate the point)
    7. Run the Action.
    First thing, the Set Reference Point seems to be utterly ignored, *or* sometimes it sets to the lower right and stays stuck there. I made one Action that was just a series of moving the Reference Point around a rectangle clockwise. The Action failed after the first Set and then stayed locked on the lower right for no discernible reason.
    In an attempt to revisit some old Actions that were working without fail under 5.5, I loaded those. For those imported Actions, every time playback hit a step calling for a "Transform Panel," it would return an error dialog "The object "Transform Panel" is not currently available."
    What in the blue blazes is going on here? Needless to say, this is taking a wrecking ball to our dozen mission-critical Action Sets, which all rely upon setting transforms to fit particular spaces automatically, precisely and consistently, and which, I might add, worked fine under 5.5.
    On the positive side, the bug where movement of objects by their X,Y coordinates via the Transform Panel during Playback seems to be fixed. So, I guess there's that.
    Help?
    P.S. Addendum: if anyone on CS6 (16.0.0 and/or 16.0.1) can at least run through the test case above and either confirm or deny that I am crazy to be witnessing this, that would be helpful, too.

    I FIXED IT!!!
    How? I made a simple Action that just recorded my changing the reference point around an object clockwise, saved the Action, then cracked it open in a text editor (Wordpad, in my case).
    Most of the items aren't terribly useful (for instance, Adobe, why are dialog texts in machine code rather than human-readable strings? That's be darn handy), BUT at the end of each step of the Action (called Events), I noticed that there was a variable being set to "8" every time. Yes, there are 9 possible reference points, but you need to think like a programmer/computer here. Yep, the first point isn't "1," it's "0." So, counting left-to-right, top-to-bottom gives you...
    0 = Top Left
    1 = Top Middle
    7 = Bottom Middle
    8 = Bottom Right
    So it isn't the playback that's at fault, it's THE ACTION RECORDER getting it wrong. I changed that last "8" variable to a "1" and brought it back into Illustrator and ta-da! My reference point gets accurately set at the Top Middle and proceeds from there! YAY! HAPPY DANCE!
    PS Adobe, YOU'RE WELCOME.

  • How do I keep the Reference Point setting at top, left

    The nine-by-nine grid in the top left corner (where the vertical and horizontal rulers meet) won't stay selected as the top left setting depending on what I select in my document. Sometimes it's the top left, sometimes it's the bottom right and sometimes it's the top middle. How can I set it so that every box I select in a document will give me the top left reference point (X-Y coordinate)?
    I'm proofing a document to make sure it's set-up correctly and all the page-heading colored boxes are  starting at the same X-Y coordinate, have the same width and the next box down on the page starts at the proper location. None of these boxes were created on a master page so I have to check each one. (And even if they were, they've all been released from the master to change their colors and place images.) In other words, on one page there is a colored box across the top that is 10p6 high, so the next box down (vertically) needs to start at the X-Y coordinate of 0, 10p6. But when I click on it the reference point is not always at the top left. So I click on the box, then click on the top left reference point, check the X-Y location and height of the box, then click on the next box down the page and click on the top left reference point and compare the X-Y location to the previous box's height.
    I have selected the top left reference point with no documents open to set that as my default preference but I didn't create this document.
    InDesign CS5 7.0.4
    Mac OS X 10.6.8

    @Peter / @FergyMac – in case of rotated objects the reference point will change from object to object.
    Not rotated object selected:
    Rotated object selected:
    Uwe

  • Set Default Reference Point to something other than center?

    I am making an action to place an smart object into my images to make a watermark...i would like for the image to place in the bottom right corner of the image but since the reference point is set to center it obviously places the image into the dead center of the piece.
    Is there a way to set the default reference point to the bottom right reference point by default so my placed image will automatically go to the bottom right of the image and so my action can run through completely without me having to create a dialog box each time to move it where i need it?
    I am using CS2 on both Mac (x10.5.1) and Windows 2000.
    Thank you,
    Leslie

    Look at this video tutorial:
    http://av.adobe.com/russellbrown/BrandingSM.mov

  • AppleScript to change artboard reference point? CS5

    Hi,
    I'm very new to scripting - just stumbled across it as I was researching tools to tackle an extremely repetitive project. One of the functions I should very much like to automate is changing the artboard reference point to top-left and then set the x and y values to 0. Is this possible? I couldn't seem to get it to record or insert into an action.
    Thank you so much in advance!

    @Mark – and here an overview of all available options:
    AnchorPoint.BOTTOM_CENTER_ANCHOR
    The center point on the bottom of the bounding box.
    AnchorPoint.BOTTOM_LEFT_ANCHOR
    The bottom left corner.
    AnchorPoint.BOTTOM_RIGHT_ANCHOR
    The bottom right corner.
    AnchorPoint.CENTER_ANCHOR
    The center point in the bounding box.
    AnchorPoint.LEFT_CENTER_ANCHOR
    The center point on the left side of the bounding box.
    AnchorPoint.RIGHT_CENTER_ANCHOR
    The center point on the right side of the bounding box.
    AnchorPoint.TOP_CENTER_ANCHOR
    The center point on the top of the bounding box.
    AnchorPoint.TOP_LEFT_ANCHOR
    The top left corner.
    AnchorPoint.TOP_RIGHT_ANCHOR
    The top right corner.
    Uwe

  • How can I set a point size for staticTexts

    Hi everyone
    How can I set a point size for staticTexts?
        staticTexts.add({staticLabel:"Please select a tedious job"});
    thanks
    Teetan

    Thank you Vandy
    Thank you pixxxel schubser
    And thank you Peter Kahrel
    But Ho can call function for this script?
    //======================================================================
    Thank you Vandy
    Thank you pixxxel schubser
    And thank you Peter Kahrel
    But Ho can call function for this script?
    //======================================================================
    var stringList = [  
    "01.  digit at end: superscript",
    "02.  digit at beginning: superscript",
    "03.  notes  applied to italic (table only)",
    "04.  Initial Cap+ markup",
    "05.  Small Cap + markup",
    "06.  del [ ] + markup",
    "07.  add an EM at beginning",
    var win = new Window("dialog","Tedious Jobs_(\"TDJs\")");  
    this.windowRef = win;  
    win.grp = win.add ("group", undefined);  
    win.grp.alignChildren = "top";  
    win.grp.margins = 5;  
    win.grp2 = win.grp.add ("group", undefined);  
    win.grp2.orientation = "Column";  
    win.grp2.alignChildren = "left";  
    win.grp3 = win.grp.add ("group", undefined);  
    win.grp3.orientation = "Column";  
    win.grp3.alignChildren = "fill";  
    win.grp2.Txt1 = win.grp2.add ("statictext", undefined, "Please select a tedious job");  
    win.grp2.Txt1.indent = 0;  
    win.grp2.Ddl1 = win.grp2.add ("dropdownlist", undefined, stringList);  
    win.grp2.Ddl1.selection = 0;  
    win.grp2.sTxt1 = win.grp2.add ("statictext", undefined, "________________________________________");  
    win.grp2.sTxt3 = win.grp2.add ("statictext", undefined, "Be careful and pay attention in what you selected.");  
    win.grp2.sTxt3.graphics.font = ScriptUI.newFont ("Arial", "Regular", 10);  
    win.quitBtn = win.grp3.add("button", undefined, "Ok");  
    win.cancelBtn = win.grp3.add("button", undefined, "Cancel");  
    win.defaultElement = win.quitBtn;  
    win.cancelElement = win.cancelBtn;  
    win.quitBtn.onClick = function() {  
    win.close();  
      if (w.show() == 1) { 
                    var mRes = mStringList.selection.text;
                    mSelection = mStringList.selection.index;
                    app.insertLabel( "mDialog", mSelection.join() );    // to store dropDownList positions (as a string "," delimited)
                    return mRes;
            } else  {  exit();  } 
    app.doScript('main()', ScriptLanguage.JAVASCRIPT, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "TDJs"); 
    function main(){
    var myObject;
    var myCheckSelection = false;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
      mySelected = app.insertLabel( "mDialog", String(mySelection.selectedIndex) );     //     to remember selection’s set 
      if(app.selection && app.selection[0].hasOwnProperty ("tedious_works") );
          tedious_works(); 
    else{
      alert("Wrong selection. Please try again.");
    function tedious_works() {  
      app.findGrepPreferences = app.changeGrepPreferences = null; 
      switch (mySelection.selectedIndex){ 
           case 1: {
       app.findGrepPreferences.findWhat = "^\\d";
       app.changeGrepPreferences.position = 1936749411;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
                break; 
           case 2:{
       app.findGrepPreferences.findWhat = "(?i)\\(note.+\\)$";
       app.changeGrepPreferences.appliedCharacterStyle = "Italic";
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "(附[註注].+)$";
       app.changeGrepPreferences.appliedCharacterStyle = "Italic";
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
           break; 
           case 3:{
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<a";
       app.changeGrepPreferences.changeTo = "A";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<b";
       app.changeGrepPreferences.changeTo = "B";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<c";
       app.changeGrepPreferences.changeTo = "C";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<d";
       app.changeGrepPreferences.changeTo = "D";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<e";
       app.changeGrepPreferences.changeTo = "E";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<f";
       app.changeGrepPreferences.changeTo = "F";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<g";
       app.changeGrepPreferences.changeTo = "G";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<h";
       app.changeGrepPreferences.changeTo = "H";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<i";
       app.changeGrepPreferences.changeTo = "I";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<j";
       app.changeGrepPreferences.changeTo = "J";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<k";
       app.changeGrepPreferences.changeTo = "K";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<l";
       app.changeGrepPreferences.changeTo = "L";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<m";
       app.changeGrepPreferences.changeTo = "M";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<n";
       app.changeGrepPreferences.changeTo = "N";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<o";
       app.changeGrepPreferences.changeTo = "O";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<p";
       app.changeGrepPreferences.changeTo = "P";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<q";
       app.changeGrepPreferences.changeTo = "Q";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<r";
       app.changeGrepPreferences.changeTo = "R";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<(?<!’)s";
       app.changeGrepPreferences.changeTo = "S";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<t";
       app.changeGrepPreferences.changeTo = "T";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<u";
       app.changeGrepPreferences.changeTo = "U";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<v";
       app.changeGrepPreferences.changeTo = "V";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<w";
       app.changeGrepPreferences.changeTo = "W";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<x";
       app.changeGrepPreferences.changeTo = "X";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<y";
       app.changeGrepPreferences.changeTo = "Y";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<z";
       app.changeGrepPreferences.changeTo = "Z";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
           break; 
           case 4:{
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<A";
       app.changeGrepPreferences.changeTo = "a";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<B";
       app.changeGrepPreferences.changeTo = "b";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<C";
       app.changeGrepPreferences.changeTo = "c";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<D";
       app.changeGrepPreferences.changeTo = "d";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<E";
       app.changeGrepPreferences.changeTo = "e";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<F";
       app.changeGrepPreferences.changeTo = "f";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<G";
       app.changeGrepPreferences.changeTo = "g";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<H";
       app.changeGrepPreferences.changeTo = "h";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<I";
       app.changeGrepPreferences.changeTo = "i";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<J";
       app.changeGrepPreferences.changeTo = "j";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<K";
       app.changeGrepPreferences.changeTo = "k";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<L";
       app.changeGrepPreferences.changeTo = "l";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<M";
       app.changeGrepPreferences.changeTo = "m";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<N";
       app.changeGrepPreferences.changeTo = "n";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences.findWhat = "\\<O";
       app.changeGrepPreferences.changeTo = "o";
       app.changeGrepPreferences.underline = true;
       app.selection[0].changeGrep();
       app.findGrepPreferences = app.changeGrepPreferences = null;
       app.findGrepPreferences = app.changeGrepPreferences = null;

  • Group Policy - Computer Startup Scripts - Add/Set Default printer

    Good Morning.
    Let's say we have 2 offices, A and B, and only 1 user.  The user is using Roaming Profiles.  Each office has its own printer.
    What I am trying to do, is make a Startup script that is specific to the COMPUTER being logged into so when any user logs into that computer, they get the printer in that office defined and set as default.
    I am able to do this successfully with my script but ONLY if i have the script be on the USER side of GP (i.e. in the Logon script section)
    That is great that that is working however, when my user goes to Office B, they still get mapped to Office A's printer if I use that method.
    So I figured I could just modify my GP and run the same script from the STARTUP section of the computer, rather than the LOGON section of the user.  It does not work.
    Here is my script:
    Set WRFCUNetwork = CreateObject("Wscript.Network")
    PrinterPath = "\\fileserver\MAINTELLER"
    PrinterDriver = "PrinterDriver"
    WRFCUNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WRFCUNetwork.SetDefaultPrinter "\\fileserver\MAINTELLER"
    This is where I Have the script placed:
         Computer Configuration -> Windows Settings -> Scripts(Startup/Shutdown)
    Once i'm in there, I double click Startup, click Add, and select my script which is named:
         MainPrinterSetup.vbs
    I have this GP applied to ONE OU, and that OU has ONE computer in it (my test computer)
    I login with a brand new user called "testuser" (creative, huh?) and basically nothing happens
    except they log in and have some Microsoft Document Image Writer printer set as default (which by the way sure does slow the PC down to the point of it almost being broke if anyone actually tries to print to that by accident)
    No Main Teller Printer, no anything.
    The strangest part about this is, if i apply this script to the user LOGON scripts, it works fine, the printer is there, and is set as default. (but see above why that wont work for my situation)
    So obviously the script works fine, but I guess i'm missing something when it comes to applying GP's to Computers rather than Users.
    Can anyone shed some light as to why the script is not running (i'm guessing the script isn't even attempting to run, rather than failing, but i have no way to know that)
    Thank you in advance!!
    Derek Conlon
    Network Administrator
    WRFCU
    EDIT:  Here are the PC's info that i'm working on:
         Server:  Windows Server 2003 Standard Edition (where my GP's are created and managed with AD)
         Target PC:  Windows XP Professional SP3
    EDIT #2:  I manually navigated to the Script file after logging in and "opened" it and it added and set the default printer no problem.  the issue is definately with the script running at startup.

    I wanted to clarify a few things:
    1. While it is true that printer connections are usually per user, it is definitely possible to create "global printers".  There are a number of ways to do this, but two methods that come to mind are using:
    a. "Rundll32 printui.dll,PrintUIEntry" option with the "/ga" switch.  The "/ga" switch is the key here since it allows you to deploy printers "per machine" instead of "per user".  More information
    about this is available at:
    http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm
    http://technet.microsoft.com/en-us/library/ee624057%28WS.10%29.aspx
    http://www.computerperformance.co.uk/Logon/logon_printer_computer.htm
    http://www.robvanderwoude.com/2kprintcontrol.php
    b. The Print Management console that is available in Windows 2003 R2 and higher can help you deploy printers "per machine" in addition to "per user".  More information about this is available at:
    http://www.czsolution.com/print-management/print-management/print-management-console.htm#DeployingPrintersByGroupPolicy
    http://technet.microsoft.com/en-us/library/cc753109%28WS.10%29.aspx
    2. As Guy mentioned, Group Policy Preferences can help set the default printer.  But there is another way to accomplish this.  The problem with the computer startup portion is that it runs before the user logs in.  And applying this script
    in the login script section would not work per computer unless you used loopback processing.  So another way to do this is to place a script that sets the default printer into the "All Users" startup folder.  Items in the "All Users"
    startup folder run for any user that logs into the computer, but it runs in the user's context.  So, this script would effectively set the default printer on a "per machine" basis.  The script method is a cruder way to approach the problem,
    but it will help get the job done.  Here are some resources on setting the default printer via script:
    http://www.intelliadmin.com/index.php/2007/08/set-default-printer-from-a-script
    http://www.computerperformance.co.uk/ezine/ezine17.htm

  • Snap object reference point to grid

    How can I snap the center of an arbitrary symmetrical
    object to the grid?
    For instance the center of a circle or rectangle.
    According to this discusssion it's not possible:
    http://forums.adobe.com/message/3759721#3759721
    How can I define a reference point in an arbitrary object
    or in a group of objects and snap this to the grid?
    Best regards  --Gernot Hoffmann

    Thanks for all contributions, much appreciated.
    I'm apologizing for not giving points, in my opinion it's a
    somewhat childish concept.
    Mike #1+ #4, thanks for taking the time.
    Carlos #5: this doesn't work here with Snap to Grid.
    It works with Snap to Point. This is a true alternative,
    probably intended by the programmers.
    I'm still using CS2, there may be a difference.
    JET #9: thanks for the hint. Making ten years long
    arrowheads in PageMaker manually, I had missed
    the possibilities in InDesign. 'Help' doesn't mention
    arrows or arrowheads. It's a feature in Stroke, simply
    accessible by Start and End.
    The very good news is this: Adding an arrowhead to
    a line doesn't make it longer!
    Perhaps the Illustrator staff should consult the InDesign
    experts...
    Problems solved - I can use InDesign and my own Post-
    Script graphis for docs like this:
    http://www.fho-emden.de/~hoffmann/project18032004.pdf
    Best regards --Gernot Hoffmann

  • How do I lock a reference point?

    I need the reference point to always be in the top left hand corner. How do I do it?
    THanks in advance

    Thank you for the response.
    With the selection tool active there is a little grid of 9 square dots in the extreme left of the toolbar. On my previous installation this was always set to the top left square. I have now installed CS3 onto a new machine, Mac Snow Leopard, and it defaults to the centre square everytime I open a document. I find this very irritating when scaling images and would like to have the previous condition. How I did it the 1st time I do not know.
    Bob

  • Error in script to set album rating in iTunes

    Hi
    I used to use the following script to set album ratings of albums in my iTunes library.  It used to work fine, but now it's not working.  When I try to debug it I am getting the following error:
    "Scripting component error."
    on this line in the third block:
    repeat with R in (rating of tracks whose album is thisAlbum)
    I wonder if anyone can spot what the problem might be?
    Thanks,
    Nick
      --Make a list of all the selected albums:
              set theAlbums to {}
              set theAlbumsRef to a reference to theAlbums
              set tempList to album of selection
              set thePreviousTitle to ""
              repeat with thisTitle in tempList
                        set thisTitle to thisTitle as text
                        if thisTitle is not thePreviousTitle then
                                  copy thisTitle to the end of theAlbumsRef
                                  set thePreviousTitle to thisTitle
                        end if
              end repeat
              set numberOfAlbums to count theAlbums
      --Make a list containing one track for each selected album:
              set theTracks to {}
              set theTracksRef to a reference to theTracks
              repeat with thisAlbum in theAlbums
                        copy (track 1 whose album is thisAlbum) to the end of theTracksRef
              end repeat
      --Set the album rating of each album contained in the selection:
              set theRatings to ""
              set k to 0
              repeat with thisTrack in theTracks
                        set k to k + 1
                        if k mod 25 = 0 then beep 1 -- for audio feedback
                        set thisAlbum to item k of theAlbums
                        set numberOfTracks to 0
                        repeat with k from 1 to (disc count of thisTrack)
                                  try
                                            get (track count of track 1 whose (album is thisAlbum) and (disc number is k))
                                            set numberOfTracks to numberOfTracks + result
                                  end try
                        end repeat
                        set songRating to 0
                        repeat with R in (rating of tracks whose album is thisAlbum)
                                  if R > 80 then set R to 80
                                  set songRating to songRating + R
                        end repeat
                        set thisRating to round (songRating / numberOfTracks)
                        set album rating of thisTrack to thisRating
                        set theRatings to theRatings & (album artist of thisTrack & tab & thisAlbum & tab & (thisRating as text) & return)
              end repeat
              display dialog "The album “" & thisAlbum & "” has a rating of " & thisRating with icon 1 buttons {"OK"} default button 1
    end tell

    problems like this are usually solvable by splitting up the line.  It doesn't look like it, but there's a whole lot going on in that compound statement. try:
    tell application "iTunes"
              set ratingList to (rating of tracks whose album is thisAlbum)
              repeat with R in ratingList
                        if R > 80 then set R to 80
                        set songRating to songRating + R
              end repeat
    end tell

  • Component reference point in ultiboard

    The default setting for component reference point is the center of PIN 1 of the part. however, for many SMT machines, it reference to the center of the component (not a pin). 
    How doImodify it without going through every component in the database?
    Solved!
    Go to Solution.

    The PIN 1 reference point gets used for positioning the part on your layout. When you export the centroid file, you will see the coordinates for the center of the component.
    I prefer to know where that center is so I don't get surprised by oddball SMT coords. This is yet another reason why we maintain our own corporate database of footprints, with the reference point set to the center (or nozzle pick-up point) of the component. 

  • Custom Reference Point in CS5

    I just upgraded from CS3, in which I used to be able to click anywhere on an object with the scale or rotate tools in order to set a custom reference point. Now I can’t do that (unless I hold the option key, which brings up the settings box—which I don’t want). Having to drag the reference point is a hassle. What happened to the functionality of simply clicking to set a new reference point?
    One CS5 help article says, "Or, with one of these tools [scale, rotate, shear] selected, click anywhere on the object or page. The reference point moves to that location.” That’s exactly the behavior I was expecting, but I can’t get it to work at all.
    Any help much appreciated!

    Unfortunately, you've described exactly exactly waht the new options are, and it's not pretty. Find something new that you do like, and then call it even. You'll feel better.

Maybe you are looking for

  • ITunes does not recognize my iPhone 4-problem solved

    iTunes woudl not recognize my iPhone 4, and i finally figured it out why.  (I am W8)  Went to control panel, device manager, and expanded portable devices. I happened to have my iPhone plugged in to a USB port, and it showed up.  Clicked on the iPhon

  • Where are my pictures and what's wrong with iPhoto??

    Hello Apple Support Community! Since I have updated iPhoto a few weeks ago, it didn't work right anymore. Everytime I started it, I had to repair the whole libary. Because I was tired of waiting several hours I didn't use it until now. Today I wanted

  • Could I install Solaris or Open Solaris on HP Pavilion dv5 1299ee??

    Hi All, I have HP Pavilion dv5 1299ee and I want to install Solaris on it. I didn't find any support about my case. Also, I couldn't find my drivers. Please advise.

  • Problem in casting a vector object

    Hi friends, I have stored dates in a vector. The date is as a string(10-08-2001). I have tried to store the vectore object into a variable. But it is displaying StringIndexOutOf BoundsException. the gist of the code is as follow. The vector object di

  • BBM message delivery expiry

    Hi, I am on BIS and have sent a BBM message to a contact who is out of network coverage. Therefore the message shows a tick next to it but does not show a D or a R. For how long does the message pend in RIM BIS queues so that it can be delivered when