Change the glyph with the FindChangeByList script

Can someone write me a sampling line for change 'Glyph' with script FindChangeByList please?

I found the solution.

Using Javascript FindChangeByList

Tags: InDesign

Similar Questions

  • Change the PowerCLI Script to use the DRS and DRS storage

    Hello

    I have a PowerCLI script that specifies a host and a data store to create a new virtual machine, which has served us well. Now we have activated the DRS and DRS storage and I wonder what to change in order to take advantage of these features. Are there commands to specify a cluster and the cluster data store and let the DRS to decide the initial investment for a new virtual machine? At the moment we put all hosts and the warehouses of data as variables and use them in the line below.

    Thank you.

    $newVM = New-VM-name $NewVMname - VM $TemplateName Datastore - $datastore - VMHost $vHost - confirm: $false - location $myName

    You set a Datastorecluster?

    If Yes, then you can replace the value of parameter data with the datastorecluster object store.

    Replacing a VMHost with a cluster is not taken in charge I'm afraid.

    But you can use something like this

    New-VM-name TestVM Datastore - DSC - ResourcePool (Get-Cluster-name mycluster |) Get - Resourcepool - name of resources)

    This will automatically select the VMHost.

    The virtual machine appears in the root of the cluster.

    DSC is the name of a datastorecluster in the cluster mycluster

  • Problem in running the Perl script by oracle

    Hello
    I am facing a problem in the perl script.

    «I have a perl script which is interacting with the sybase database.» We have migrated successfully to the sybase database to oracle. Now, I want to change the perl script to interact with the oracle database.
    I use code like this to the interaction of the oracle database

    Old Code with sybase database: use DBI::Sybase:GFAS;
    New oracle database code: use DBI::oracle:GFAS;

    When I execute the script perl, its display of the mentioned below error:

    Cannot find DBI/oracle.pm in @INC (@INC contains: C:\oracle\product\10.2.0\db_1)
    \perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib/mswin32
    x 86-multi-thread C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib C:\oracle\product
    \10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\site\
    5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-thread
    C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1
    \sysman\admin\scripts C:/Perl/lib C: / Perl / site / lib.) on line 4 of the hello.pl.
    BEGIN failed--compilation abandoned at hello.pl line 4.


    Anyone has any idea about this error.

    Thanks in advance.

    If you look in the oracle in the perl\site\5.8.3\lib\MSWin32-x86-multi-thread directory, you will see two directories. Once is DBI and DBD is.

    Everything you need in your perl program is a line 'using the DBI '. It will use DBD automatically as needed. You can specify the necessary connection information when you cause the DBI-> connect statement.

    I managed to connect to the Oracle database and perform DML through the software installed by default. You don't need to download and install anything else.

    I'm no expert, so maybe it lacks some features by using the interfaces supplied by Oracle, but for my needs, it sufficed to perl.

    I hope this helps.

  • play music instead of silence on the default script

    I'm trying to configure the IPCC Express

    If Agents are busy or not ready, default script from the IPCC plays the welcome message then the time of silence then greeting and so on...

    I want to replace the time of silence by music file

    How can I do this? How can I change the default script to read the message file then music of greeting and so on?

    Concerning

    Mohamed

    You can subscribe to delay DelayWhileQueue dry stage and insert another stage of PlayPrompt which will refer to your music .wav file.

    I hope this helps.

    Brandon

  • Cannot change the default mode in wscript

    In Windows 7, when I try to change the default mode of wscript, I get an error message. When I get home

    CScript //H:CScript

    the command line, I get

    CScript error: cannot change the default script host

    What should I do?

    Open command prompt w / administrative permissions (right click, run as administrator), and then run the command:
    cscript //h:cscript //s //nologo

  • FindChangeByList script question, re: when a style is part of a group of style

    Hello

    I use script FindChangeByList InDesign and run into a problem.

    Here's the line of problem:

    grep {findWhat:"^."} {appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Text").paragraphStyles.item("Body2.TextIndent"), changeConditionsMode:1919250519} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true} //Change everything to Text.indent2 style

    What I'm trying to do, it's each paragraph in shape with the style called "Body2.TextIndent" which is in my style sheets in a group called "text".

    This line does not work for me; I get a JavaScript "Error #17.". Error string: the variable name expected. »

    Please note that I CAN get this line to work just fine if I use a style that is NOT in a group. For example, this line works very well for me:

    grep {findWhat:"^."} {appliedParagraphStyle:"Body2.TextIndent", changeConditionsMode:1919250519} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true} //Change everything to Text.indent2 style

    The problem is apparently that the FindChangeByList script does not like style groups. I found it by internet Google and found this link:

    http://www.listsearch.com/InDesign/thread/index.Lasso?17986

    Can anyone help?

    Thank you.

    What version of InDesign are you using?

    The following line works for me on CS3, Mac.

    grep     {findWhat:"^."}     {appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Text").paragraphStyles.item("Body2.TextIndent")}     {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true}     //Change everything to Text.indent2 style
    

    Kasyan

  • Change the Orientation of the camera Auto with Script

    Hello

    I'm trying to figure out how to change the setting to automatically move to a camera in my script. Page 41 of the AE script guide, it seems that I should be able to affect the automatic with East

    " app.project.item (index) .layer (index) .autoOrient " it allows me to go back to a numeric value of East car, however, I'm not really sure how I could continue on assignment of an wrong, I tried to assign it fake directly, but that doesn't seem to work. "." The guide says to use "AutoOrientType.NO_AUTO_ORIENT ' but this is if I try something like this I just get undefined: " "


    myProj = app.project var

    myComp = myProj.activeItem var

    var targetLayer = myComp.selectedLayers [0]

    targetLayer.autoOrient.AutoOrientType.NO_AUTO_ORIENT

    Can someone point me in the right direction, what I'm doing wrong here?

    Thank you!

    Try changing your last line to this:

    targetLayer.autoOrient = AutoOrientType.NO_AUTO_ORIENT;

    Dan

  • Change the source file of the insert text with a script

    I'm looking for a way to replace existing-insert text in a document with the contents of another file (by reference), using scripts. I have a document c:\referer.fm, in which there is an insert text which the source file is: c:\A.fm

    I also have c:\B.fm, and now I want to change referer.fm so that is no longer the overlay of text contains the text of A.fm, but the B.fm.

    I tried this:

    var doc is app. ActiveDoc;

    var textinset is doc. FirstTiInDoc;

    var pathtosource is textinset. TiFile;

    pathtosource = "c:\B.fm";

    textinset. UpdateTextInset();

    But it does not work. I guess that the "pathtosource" parameter can be done this way. If someone knows a way to do it, I would greatly appreciate your help!

    David

    Hello David,.

    You do not manipulate the text overlay, but a copy of the file in the text box. Your "pathtosource" parameter is a local copy of the property that you read from the actual text insert.

    Try this code instead:

    var doc is app. ActiveDoc;

    var textinset is doc. FirstTiInDoc;

    textinset. TiFile "c:\\B.fm".

    Note that the backslash must be escaped with the backslash to make it work in a JavaScript string. To make your script Fail-Safe, test the name of file textinset before changing. You do not have the textinset that you expect to have, as might also be INSET text on master pages and reference. All inserts text are in a single linked list.

    Also, update the text tagging along after that changing the path may not always work, as compared to FM, last changed the file date text inset with the last time that the textinset has been updated. To force the FM to update the textinset, you must include the following line of code after changing the filename text inset:

    textinset. LastUpdate = 0;

    Then, you can call the UpdateTextInset() method and it will work.

    Good luck.

    Jang

  • How to change the Source with EditText text in my Script?

    Here is my code, actually, the thing is I want to change my myEditText text in my control panel:

    function myScript(thisObj) {
              function myScript_buildUI(thisObj) {
                        var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", [0, 0, 300, 300]);
    
                        res="group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
                                  myEditText: EditText{text:'EditText text'},\
                                  myButton: Button{text:'Button Name'},\
                        }"
    
                        //Add resource string to panel
                        myPanel.grp = myPanel.add(res);
                        
                        
                        var texto = myPanel.grp.myEditText.text.value
                        
                        var btn =  myPanel.grp.myButton
                        
                        
                        
                        btn.onClick = function (){
                            
                            app.project.item(2113).layer("TXT 1").property("Text").property("Source Text").setValue = texto
                            
                            }
                        
                        
                        
                        
    
    
                        //Setup panel sizing and make panel resizable
                        myPanel.layout.layout(true);
                        myPanel.grp.minimumSize = myPanel.grp.size;
                        myPanel.layout.resize();
                        myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}
    
                        return myPanel;
              }
    
    
              var myScriptPal = myScript_buildUI(thisObj);
    
    
              if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
                        myScriptPal.center();
                        myScriptPal.show();
                        }
              }
    
    
              myScript(this);
    

    Something like this should work:

    function myScript(thisObj) { 
    
      var textStr = "";
    
      function myScript_buildUI(thisObj) {
    
      var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", [0, 0, 300, 300]);  
    
      res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
      myEditText: EditText{text:'EditText text'},\
      myButton: Button{text:'Button Name'},\
      }"
    
      //Add resource string to panel
      myPanel.grp = myPanel.add(res);
    
      // I added the next two lines.
      textStr = myPanel.grp.myEditText.text;
      myPanel.grp.myEditText.onChange =  myPanel.grp.myEditText.onChanging = textStringUpd;
    
      myPanel.grp.myButton.onClick = function (){
    
      app.project.item(2113).layer("TXT 1").sourceText.setValue(textStr);
      //or tell the script to change the soureText property of the currently selected layer (remove the two slashes from the line below and add them to the line above)
      //app.project.activeItem.selectedLayers[0].sourceText.setValue(textStr);
    
      }
    
      //Setup panel sizing and make panel resizable
      myPanel.layout.layout(true);
      myPanel.grp.minimumSize = myPanel.grp.size;
      myPanel.layout.resize();
      myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}
    
      return myPanel;
    
      }  
    
      var myScriptPal = myScript_buildUI(thisObj);
    
      // I added this function.
      function textStringUpd() {
    
      textStr = this.text;
    
      }
    
      if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
                myScriptPal.center();
      myScriptPal.show();
      }
      }  
    
    myScript(this);
    

    I've added comments to indicate the changes that I made

  • Text find and change the problem CS3 and CS4 scripts

    I use the script below to find text and turn them into others.

    There is one thing the script can't do it for me.

    Example:


    (g) management

    (1) that no law that is adopted in the Cayman Islands, a tax to collect profits, income, gains or satisfaction does apply to the company or its activities; and

    (2) that the above-mentioned tax or any tax in the form of rights of succession or inheritance tax is payable in respect of shares, debentures or other obligations of the company.

    Example: (end)

    I had a lot of subjects or points in the passage. And I want to change the space between '(g)' and 'Management' in a tab character. So I revised the plain text file 1texte.

    PS: 1text.txt is filled with what to change.

    text {findWhat: "^ p(^?)" ' "} {changeTo: "^ p(^?)"} ^ t "} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false} search all space-dash-space and replace it with an en dash."

    The result is:

    (^?) ^ tManagement

    (^?) ^ tthat any law that is passed in the Cayman Islands, imposing a tax on profits, income, not capital gains or satisfaction applies to the company or its activities. and

    (^?) ^ tthat the above-mentioned tax or any tax in the form of rights of succession or inheritance tax is payable in respect of shares, debentures or other obligations of the company.

    PS: ^ t is a tab character.

    result (END)

    This is not what I want.

    It should be"(g) ^ tManagement'.

    PS: ^ t is a tab character.

    Please someboady help me out revised the script below to change the text in what I want. Thank you very much.

    Here's the script.

    FindChangeByList.jsx
    An InDesign CS4 JavaScript
    /*
    @@BUILDINFO @ "FindChangeByList.jsx" 2.0.0.0 January 10, 2008
    */
    Loads a series of strings delimited by tab characters from a text file, and then executes a series
    Find/replace operations based on the lines read from the file.
    //
    The data file is delimited by tabs, returns to cart that separates records.
    //
    The format of each record in the file is:
    findType < tab > findProperties < tab > changeProperties < tab > findChangeOptions < tab > description
    //
    Where:
    < tab > is a tab character
    findType is 'text', 'grep' or 'glyph' (this sets the find/replace operation type to use).
    findProperties is a recording of properties (text) search preferences.
    changeProperties is a recording of properties (text) of the change preferences.
    findChangeOptions is a recording of properties (text) of the options find/replace.
    Description is a description of the search/replace operation
    //
    Very simple example:
    text {findWhat: "-"} {changeTo: "^ _"} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false} find all double hyphens and replace by an em dash.
    //
    More complex example:
    text {findWhat: ' ^ 9 ^ 9.} {' ^ 9 ^ 9 '} {appliedCharacterStyle: 'price'} {include notes: true, include master pages: true include hidden layers: true, any word: false} find $ 10.00 to $ 99.99 and apply the character style 'price '.
    //
    All metacharacters search InDesign are allowed in the properties 'findWhat' and 'changeTo"findTextPreferences and changeTextPreferences.
    //
    If you enter the backslashes in the object findGrepPreferences findWhat property, they must be "escaped".
    as shown in the example below:
    //
    {"findWhat: '"\\s+ "}
    //
    To learn more about InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    or visit the InDesign Scripting user to http://www.adobeforums.com users forum
    //
    main();
    main() {} function
    var myObject;
    Ensure that the interaction of the user (dialog boxes display, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    If (app.documents.length > 0) {}
    If (app.selection.length > 0) {}
    {Switch(App.Selection[0].constructor.) Name)}
    case 'PointInsertion ':
    'character ': case
    case "word":
    case 'TextStyleRange ':
    case "line":
    stops of the "Point":
    case "TextColumn":
    case 'text ':
    case "cell":
    case "column":
    case 'Row ':
    case 'Table ':
    myDisplayDialog();
    break;
    by default:
    An option has been selected, but it was not a text object, so look for in the document.
    myFindChangeByList (app.documents.item (0));
    }
    }
    else {}
    Nothing has been selected, then just search for the document.
    myFindChangeByList (app.documents.item (0));
    }
    }
    else {}
    Alert ("no document is open. Please open a document and try again. ») ;
    }
    }
    function myDisplayDialog() {}
    var myObject;
    var myDialog = app.dialogs.add({name:"FindChangeByList"});)
    {with (MyDialog.dialogColumns.Add ())}
    {with (dialogRows.Add ())}
    {with (dialogColumns.Add ())}
    staticTexts.add ({staticLabel: "beach of research :"});})
    }
    var myRangeButtons = radiobuttonGroups.add ();
    {with (myRangeButtons)}
    radiobuttonControls.add ({staticLabel: "Document", checkedState:true});})
    radiobuttonControls.add ({staticLabel: "Selected Story"});
    If (app.selection [0] .silence! = "") {}
    radiobuttonControls.add ({staticLabel: "Sélection", checkedState:true});})
    }
    }
    }
    }
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    {Switch (myRangeButtons.selectedButton)}
    case 0:
    myObject = app.documents.item (0);
    break;
    case 1:
    myObject = app.selection [0] .parentStory;
    break;
    case 2:
    myObject = app.selection [0];
    break;
    }
    myDialog.destroy ();
    myFindChangeByList (myObject);
    }
    else {}
    myDialog.destroy ();
    }
    }
    function myFindChangeByList (myObject) {}
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, ditto;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, monarticle;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/FindChangeSupport/1test.txt")
    If (myFindChangeFile! = null) {}
    myFindChangeFile = File (myFindChangeFile);
    Ditto var = myFindChangeFile.open ("r", not defined, undefined);
    if(myResult == true) {}
    Loop in find/replace operations.
    {}
    myLine = myFindChangeFile.readln ();
    Ignore blank lines and comment lines.
    If ((myLine.Substring (0.4) == "Text") |) (myLine.substring (0.4) == "grep"). (myLine.substring (0, 5) is "glyph")) {
    myFindChangeArray = myLine.split ("\t");
    The first field in the line is the findType chain.
    myFindType = myFindChangeArray [0];
    The second field in the line is the FindPreferences channel.
    myFindPreferences = myFindChangeArray [1];
    The second field in the line is the ChangePreferences channel.
    myChangePreferences = myFindChangeArray [2];
    The fourth field is the range - used only text find/replace.
    myFindChangeOptions = myFindChangeArray [3];
    {Switch (myFindType)}
    case 'text ':
    myFindText (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    case "grep":
    myFindGrep (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    case 'glyph ':
    myFindGlyph (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    }
    }
    } while(myFindChangeFile.eof == false);
    myFindChangeFile.close ();
    }
    }
    }
    function myFindText (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the preferences of find/replace before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeTextPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeTextOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    myFoundItems = myObject.changeText ();
    Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    }
    function myFindGrep (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeGrepPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeGrepOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep ();
    Reset grep find/change preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    }
    function myFindGlyph (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the preferences of glyph in find/replace before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeGlyphPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeGlyphOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph ();
    Reset glyph in find/change preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    }
    function myFindFile (myFilePath) {}
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File (myScriptFile);
    var myScriptFolder = myScriptFile.path;
    CheminMonFichier = myScriptFolder + CheminMonFichier;
    If (queue (CheminMonFichier) .exists == false) {}
    Display a dialog box.
    CheminMonFichier is File.openDialog ("choose the file containing your list find/replace");.
    }
    Return CheminMonFichier;
    }
    function myGetScriptPath() {}
    try {}
    myFile = app.activeScript;
    }
    {catch (MyError)}
    myFile = myError.fileName;
    }
    return myFile;
    }

    I'm not a writer, but I'll take a stab and try to make a difference here.

    The main problem, in my opinion, is that you use a plain text instead of GREP search. Text gross has no provision to replace the text found by itself, for example, rather than using the codes you entered a literal string. Your search text of ' ^ p(^?) ' means find any character in brackets that occurs after a paragraph break. I would use in GREP ^ \s+ (\(.+?\)) which translates to find an opening parenthesis at the beginning of a paragraph (so he'll find if it happens to be the first character in th in a story) followed by a number any characters up to the first parenthesis (in the case where you have double the figures or double entries letter) followed by ANY white space (in the case where it is not an ordinary space or multiple spaces). Replace $1\t which means the text found in the first set of parentheses in query search followed by a tab.

    Parentheses are special in GREP, they surround groups of terms you want to re-use the text found, so looking for the actual characters you need to 'escape' with the-prefix, so \(.+\) will find a paren open followed by all the characters up to the end last paren in the paragraph. Addition of the? After the + makes research stop at the first closing paren met, although there are several sets in the paragraph.

  • Try to set / change the password BIOS admin via the script WMI on ThinkStation D20

    Hello Lenovo Community!

    Start using the WMI Lenovo_SetBiosSetting class on a D20 system.

    If I understand the documentation that there is a limitation on the BIOS password in the past, but I updated to the latest BIOS Rev who support States was added for this feature.

    I use a script that changes the supervisor on computers password successfully thinkpad, but when even to run the script from command line on the D20 system it returns "SUCCESS" however to change the password did not effect!

    I'm using the right parameters are the standard of lenovo

    ' pap, oldpass newpass, ascii, we.

    I thought maybe "pap" is not the correct setting for password Admin on the D20, however the WMI available, posted 2010 guide, does not show otherwise.

    Someone at - it an example script that they can display successfully change the password on a D20 system?

    Please and thx!

    Did you run the SaveSetting script after changing the password?

    You can get the SaveSetting script from the sample scripts D20 located at the following link:

    http://support.Lenovo.com/en_US/downloads/detail.page?docid=UM002033

    You can use the script SetAdminPassword from the library of scripts of series E, then a follow-up that with something like what follows before restarting:

    "cscript SaveSetting.vbs" originalpwd, ascii, we.

    Replace 'originalpwd' with all what your existing password was at the time wherever you booted the system.

  • Can I change the default settings for the latency time Serial Windows with LabVIEW

    I have a wireless data collection device that my business is that I am using for the test one of our other wireless products. The device sends data series to a PC via a USB port. I wrote an automated LabVIEW program to test all the functions of my new product. However, after firing in the data, I realized that the serial data coming very fast and requires me to change latency of Windows by default for the port COM 16ms 2ms Miss not nothing. It's pretty easy for me to do locally on my machine, but much more difficult for me to spec for an off-site CM.

    Is it possible to have my LabVIEW program change the latency time of the COM Windows port of 16 ms to 2 ms automatically?

    Are you talking about the FTDI driver? I know that they allow these changes through registry settings. Thus the approach would probably be to have a small registry script that updates the parameter of function. Most likely, this will have to be run with elevated privileges, as these parameters resident generally in the HKLM or HKCR rather than the HKCU one hive.

  • Change the LV version currently active in the batch script

    Hello

    I use two different applications on my computer, and one of them should run in LV 2011, this in LV 2012. The two versions are installed and it works fine until I start the correct version of LV manually before you start the application (start and end of the required version of LV in C:\Program Files (x 86) \National Instruments\... before starting my request).

    I want to do this automatically in a command script, so basically I want to do the following:

    * Check which version of LV is currently active (last LV start version)

    * If the currently active version of LV is NOT required: change to the required version of LV (by starting LV and close or preferably do differently if someone could tell me how)

    * If the currently active version of LV is required: do nothing

    There are two problems I couldn't solve so far:

    * How to get the LV version currently active (I checked the windows registry, but I see that my installed versions of LV, and not one that is currently active)

    * How can I close LV with a batch script (or how to change the version of the currently active LV without opening and closing)

    Thanks in advance,

    Tobias

    PS: I did the same for the different versions of TestStand, by reading the TestStand system and if requuired environment variable change the version of TestStand via the command-line of the TS Version selector. It works fine, but there is no system environment variable that indicates the currently active version of LV.

    OK, this is a very informal Tip:

    In the registry (regedit), you will find the key 'HKEY_CLASSES_ROOT\LabVIEW.Application\CLSID '. This default key should contain some weird ID information.

    If you search for this key, you will find an entry for the key in the "HKEY_CLASSES_ROOT CLSID" section.

    If you have several versions of installed LV, there must be a key in the entry which will give you the path to the active version of NV. don't forget: this is the version that you have opened up to the last successfully!

    Please note that keys can change from system to System. Also different versions of LV can use different keys like "routing information" the way of the real LabVIEW.exe.

    hope this helps,

    Norbert

  • change the ownership of file system with a vbscript

    Hi all

    I need to change the owner of a folder on windows 7. If I caraa, in properties, advanced, owner, change of ownership, it works. If I do it from a vbscript script, I got an access denied.

    I use this script through SCCM, running with the system account.

    is there a way to force my script to access and change the property? I need this spread on computers k 1.5 to solve some problem of corruption.

    Thank you very much for your help!

    Hi Daniel,.

    Given that the request is related to SCCM, I suggest you to send this request in the Microsoft TechNet forum where you might find similar messages and also get answers to your query. Here is a link to the forum:

    http://social.technet.Microsoft.com/forums/SystemCenter/en-us/home

  • How to make a VB script on the computer after you change the files?

    Original title: HI! I have to run a VBscript on windows7 as modfying user (not administrator) files in c:\program files\mycompany. Is this possible?

    It works to disable the UAC. There is no way to let him work with UAC on? (Perhaps change somehow permissions files?)

    You have two options:

    • Turn off UAC (not recommended)
    • Change the script so that it generates a UAC challenge (to which the user must respond with an admin account & password).

Maybe you are looking for