Pass current sequence as argument in Customize Tool Menu

Is it possible to pass the full path and filename as an argument under the Customize Tool Menu?
Basically, I have an external tool that works on a sequence file and I'd like to call it from the Tools menu.  It's a Command type but I don't know what to put in the arguments.  I found a post where someone said use "%FILE%", but that did not work. 
Also, if there are other keywords available, where is that list?
Thanks. 
Solved!
Go to Solution.

Hi Richard,
It seems there isn't a way to do this using the Command type.  The problem is that you can't use an expression to specify the arguments for the executable and you need to use an expression to get the current sequence file's path.
However,  you can wrap your executable in a sequence file that has only one step; calling your executable.  If you place a Call Executable Step in your sequence, you can specify the argument as the current file path by using the expression RunState.InitialSelection.SelectedFile.Path.
Then add a new item to the Tools menu and select your wrapper sequence.
Cheers, 

Similar Messages

  • 2.1 EA2: is it possible to pass current line number to external tool

    When I define external tools (in Tools / External Tools...) I can pass current file name and directory to my external program.
    Is it also possible to pass current line number (where is my cursor in open file) to external program as a parameter?
    If not then it would be a feature request from me :)
    And also - is it possible to develop SQL Developer extensions for syntax color coding of other file types (meaning other than PL/SQL files)?

    raymonds,
    For line numbers, we cannot do it at the moment as it is not exposed in that API, however, you can request it on http://sqldeveloper.oracle.com at the feature request station
    For color coding for another language, you can develop a hilighting plugin, but we do not have an easy way of associating the plugin with an editor for a specific file type. Again this would be a feature request.
    Remember, all these get evaluated each month and assigned into Enhancements for the tool. If enough folks vote for the feature, it is highly likely it will appear.
    Barry

  • No progress indicator or report for Tools menu sequence execution?

    I have a sequence that I call from the TestStand customized Tools menu.
    This sequence generates custom reports on sequences. The report generation
    process can take anywhere from 10 to 60 seconds (there are DB queries
    involved).
    I hoped to use the TestStand progress indicator to display the report
    generation progress and the Report.Load method to display the report to the
    user when its done.
    If I set a breakpoint on the first step of the report generation sequence
    and run it, everything works as expected after I proceed from the break
    point. The progress indicator comes up and updates itself. And the
    operator gets a copy of the report in the Report tab of the execution
    window.
    However, if I don't set a bre
    akpoint, an execution window never pops up. No
    progress indicator, no report when done.
    I assume its got to do with interactive v. non-interactive execution. Is
    there a way to force a Tools menu sequence to execute as an interactive
    execution so I get the execution window to pop up?
    Bob Rafuse
    Etec, Inc.

    James,
    > I think tool menu items are run with the ExecTypeMask_InitiallyHidden
    > and ExecTypeMask_TracingInitiallyOff flags passed to the
    > executionTypeMaskParam parameter to Engine.NewExecution. Thus tool
    > menu executions don't appear in a window unless you hit a breakpoint.
    >
    > In a simple tool menu sequence, I added a statement step with the
    > expression RunState.Tracing = True. This caused the window to appear
    > so the progress indicator and report are visible.
    Thanks. I forgot to mention that I'd tried that... still no luck. I added
    the RunState.Tracing = True as a statement as the first step in my Tools
    seqeunce call. The execution window still does not appear. Is there some
    place special this statement needs to be?
    Are there any global setting
    s that override the Tracing flag? If I check
    Enable Tracing in Station Options, while the window pops up, the execution
    takes unacceptably long as TestStand traces every single step, even when
    tracing speed is set to max. I can't find any other setting that seems
    related to this...
    Any other ideas?
    Thanks,
    Bob
    Etec, Inc.

  • My Tools Menu has only a "Customize​..." submenu selection.

    I am trying to export property loader limits to a source file as an easy way to create the correct file structure.  I am relatively new to TestStand, but I have done this before.  The TestStand help files say that "Import/Export Properties" should be a selection under the Tools menu, along with many other selections such as "Deploy TestStand System", "Sequence File Documentation", and "Database Viewer" - - -  but for some reason the only menu item that appears under the Tools menu selection is "Customize . . .".
    Seems to me that I had problems like this before, and maybe I need to be in some particular mode first before most of the submenu selections are made available?  [If so, too bad the help doesn't tell me this.]
    Can anybody tell me what to do so that the "Import/Export" selection shows up under the Tools menu and then I can export my property loader data to a file?  I'm pretty sure it's a simple matter, but I've searched the help files high and low without getting any help on the matter, and I've tried a million different things, but to no avail.  I'm terribly frustrated.   

    Ray,
    Looks to me as though the Tools folder is well stocked . . . .
     Directory of C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Tools
    [.]                       [..]                      [AutomationIDUpdate]
    [Converters]              [DatabaseView]            [Deployment Utility]
    [DocGen]                  FixUpSeqFiles.seq         ForEach.seq
    GenericImportExport.seq   [GraphControl]            ImportExport.seq
    [LaunchMax]               [LVTECompatibility]       [Misc]
    [StepIDConverter]         TSForEach.dll            
                   5 File(s)        316,702 bytes
                  12 Dir(s)  33,368,580,096 bytes free

  • Exchange Server setting for Outlook 2013 in Office Customization Tool

    Hello, 
    I'm try to configure Office Customization Tool such that when a domain user logs into any workstation, their outlook profile is automatically configured and the shared department email account is added as the secondary mailbox but it hasn't worked for me.
    I looked up for the settings on the internet where I found a few server settings but none of them worked for me. We have Office365; I added outlook.office365.com, and the settings that starts with chprod.. that didn't work either. I also sent a test email,
    and looked up the server settings from messageheaderanalyzer in office365 OWA and added the settings in the OCT, that couldn't pull up the email either. How can I make it to work? 
    Just to be clear, this is what I want. 
    When a user logs in to the workstation and starts outlook, it should find the users email and configure it automatically. Then it should also add department mailbox as their secondary mailbox if they have permission. 
    Thanks

    There is however an Outlook Group Policy
    Template: "Automatically configure profile based on Active Directory Primary SMTP address"
    "This policy setting controls whether users who are joined to a domain in an Active Directory environment can change the primary SMTP address that is used when they set up accounts in Outlook.
    If this policy setting is enabled, users can create a new profile by entering a profile name. The profile is created without using the New Account wizard. No user interface appears as the profile is created, which might cause users to think that the computer
    has crashed. 
    If you disable or do not configure this policy setting, users joined to a domain in an Active Directory environment, and without a configured email account, see the current logged in user’s primary SMTP address entered in the email address box in the New
    Account wizard. The email address can be changed to configure a different account. Or, if Next is clicked, the default settings are used."
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Installation of Adobe Reader XI using customization tool but looking to put two check marks

    Hi guys,
    Installation of Adobe Reader XI using customization tool but looking to put two check marks in the signature bottom two options
    called Validating Signatures and Validating Certified Documents.
    Can't find it in the customization tool and don't want to change this on 650 workstations.
    If I could change a registry key or change it in the installation it would help alot.
    Thanks for your help!!!
    Chris

    I am posting this reply AGAIN
    My first reply was empty because i responded to the email I received saying this thread (is that the right terminology?) was updated. Obviously that email didn't get added, just a blank line....
    Then I replied to this thread directly on Friday and that seems to have disappeared. Maybe I just don't know how to use a computer? Better sell the technology company I own LOL.
    Ok so it seems the screen is normal, (not maximized). When I unlock and drop my start bar to one row, then the top of the screen pops down to inside my visible monitor space and it is not maximized. This allows me to drag it to another monitor and then maximize it there, then put my start bar back and relock it. This is the only way I can move the window, if I don't shrink my start bar, then I have zero access to the top bars of the document!
    Currently I can not reproduce the problem ( I might have temporarily fixed it with my start bar reducing and then moving documents), so maybe it is permanently fixed....
    Maybe a reboot will bring the problem back... It has been intermittent for about 6 months.

  • Programmatically close the current sequence's window

    Is there a way to programmatically close the current sequence’s window in order to reload it if it was modified or to load another sequence (programmatically)?

    Do you want to close it from the UI?  Because I don't think you can do it from the Seq. Editor???? 
    From TestStand Help:
    CloseSequenceFile Method
    Syntax
    ApplicationMgr.CloseSequenceFile ( file)
    Return Value
    Boolean
    Returns whether the sequence file was successfully closed.
    Purpose
    Closes a sequence file.
    Remarks
    The Application Manager control attempts to close the sequence file by generating a QueryCloseSequenceFile event. The QueryCloseSequenceFile event confirms whether to release the file and remove the file from the SequenceFiles collection. If the sequence file is running in an execution or if other references to the sequence file exist, TestStand does not immediately unload the file from memory.
    Parameters
    file As SequenceFile
    [In] Specifies the sequence file to close.
    OpenSequenceFile Method
    Syntax
    ApplicationMgr.OpenSequenceFile ( sequenceFilePath)
    Return Value
    SequenceFile
    Returns the opened sequence file, if successful. If a type conflict occurs when loading the file and the conflict prevents TestStand from opening the file, this method returns NULL. If an error occurs while opening the file, this method throws an exception.
    Purpose
    Opens a sequence file.
    Remarks
    This method adds the sequence file to the SequenceFiles collection and generates the SequenceFileOpened and DisplaySequenceFile events.
    Parameters
    sequenceFilePath As String
    [In] Specifies the path of the sequence file to load. If you do not pass an absolute path, this method searches for the file using the TestStand search paths.
    Hope that helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to get current sequence in a stacked sequence

    Hello,
    I am trying to implement a progress bar for a stacked sequence; as the sequence increases, the bar increases etc... This may be trivial but I cant figureout how to determine the current sequence number.  There is no property node for a stacked sequence structure...
    I am using labview 8.5 
    Regards
    hvo

    First, what proces are you doing using teh sequence structure? In general, you should avoid using sequence structures, esspecially stacked sequence structures. I assume you are new to LabVIEW and data flow programming. Take some time to learn how to use data flow programming and you will find you rarely ever need to use sequence structures. There are lots of discussions which cover the negatives about sequence structures.
    Now, given that you will need to develop your own variable which is used to update the progress bar throughout the sequence. The brute force method would be to wire a value through and use sequence locals. However if you went down this path you will quickly see why sequence structures are not recommended. A more generic method would be to create an Action Engine (search for action engine for lots of explanations on those) which would control the progress bar data. Each frame would need to call the action engine to update the progress bar.
    Since it sounds like you are writing a fairly complex sequence I would recommend you do one of two things. First and probably the easiest would be to create a subVI for each frame and then simply use dataflow to wire these together in the order you want to execute them. The downside here is that you are creating subVIs which may or may not ever be reused. It is still a valid approach though. The second and more flexible approach would be to use a state machine to control your processing. This is much more flexible and easier to maintain than a stacked sequence.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • Cannot Save Word files as a PDF in Office 2013 with Office customization tool

    Hello
    I'm deploying office 2013 as a part of a post clone task.  Using the customization tool I created an msp with the full installation (without outlook,Link, or skydrive) I noticed that I cannot save or export files as PDF files.  If I do a manual
    install (without MSP) I can save files as pdf.  I can't find anywhere in the customization tool that allows me to choose different "save as" file types. In office 2010 I used to be able to save word files as PDF files.  Any ideas would
    be greatly appreciated.
    Charles

    Hi,
    In regarding the issue, could you give me more information? Did you test to install the Office 2013 by using MSP and manual installation in the same computer? Did the other Office suits can not save files as pdf?
    Let's do some test to narrow down the issue:
    If you use the only one computer to test, please export a new MSP file include all the suits and use the all the default setting. Then we follow the
    link to deploy again.
    If the issue still exists, please try to change a computer, and update Adobe programs to install the new MSP file to test.
    If you get some error message when you save as pdf through Word, please upload, I'll do more deeply research.
    Regards,
    George Zhao
    TechNet Community Support

  • How to pass a command line argument to a jsp file...

    Hi guys,
    I'm writing a jsp file in which I have some java codes. I want to pass some command line arguments to that jsp file. In other words, I have some files located somewhere on my C drive and I want to pass the path to these files to my jsp file. How can it be done? I have never done before.
    Any suggestion will be very hepful...
    Thanks....

    I dont know if I truly understand your problem...
    For instance, when you place the url of your jsp you can add, at the end some parameters. For example:
    http://myserver/myapp/myjsp.jsp?MyParameter=C:\Temp\JavaTutorial.html
    In your JSP, you can place this code on a scriplet to get the value:
    String path = request.getParameter("MyParameter");
    Hope it helps.

  • Using $(SolutionName) as argument for External Tools?

    Is it possible to use $(SolutionName) as argument for External Tools?
    I can't get it to work...
    I'm using Visual Studio 2013 Pro (paid for)
    // Anders

    Hi Anders,
    I have take a look at my VS 2013 External Tools, there is no $(SolutionName) option. Only $(SolutionFileName) exists. Do I miss something?
    And please also refer to
    Arguments for External Tools in MSDN for more detailed information.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Pass dynamic Command line arguments

    Hi,
    I tried to pass dynamic command line argument to Web start using the method :
    "javaws URL -D foo -D bar"
    as explained in the "Unofficial JWS/JNLP FAQ" that " You can pass your own system properties to your app using -D switch ....", but I got the following error at the start;
    error occurred while launching/running the application.
    Category: Invalid Argument error
    Too many arguments supplied: {http://...URL/my.jnlp, -Did=123 }
    p.s. I already added the"<property name='' value=''/> in the <resourse>, and modified the main class to get the parameter using System. getProperty();
    Did anyone try to this method before? What's wrong of this?
    Thanks in advance for your help.

    Thanks.
    here below is the jnlp file:
    <jnlp spec="1.0+" href="$$name" codebase="$$codebase">
    <information>
    <title>GUI Application</title>
    <vendor>PS</vendor>
    <description>PS GUI WebStart Version</description>
    <icon href="logo.jpg" />
    <offline-allowed />
    </information>
    <resources>
    <j2se version="1.3" />
    <jar href="lib/gui.jar" />
    <property name="id" value="zbc" />
    <jar href="lib/classes12.zip" />
    <jar href="lib/j2ee.jar" />
    <jar href="lib/jaas.jar" />
    <jar href="lib/jce1_2_1.jar" />
    <jar href="lib/jdom.jar" />
    <jar href="lib/xerces.jar" />
    <jar href="lib/local_policy.jar" />
    <jar href="lib/log4j.jar" />
    <jar href="lib/orion.jar" />
    <jar href="lib/sunjce_provider.jar" />
    <jar href="lib/US_export_policy.jar" />
    </resources>
    <security>
    <all-permissions />
    </security>
    <application-desc main-class="GUIFrame">
    </application-desc>
    and in the main class "GUIFrame", i use System.getProperty("id") t get the parameter, if I hardcode the value of the "id" in this jnlp file and use javaws URL, everything's fine, but not the "javaws URL -Did=value" which will return the error as mentioned.
    Thanks again for your help.

  • Pass the command line argument (argc and argv) to a LabVIEW built shared library.

    Hello,
    I have successully use this trick to build a LabVIEW application that runs on Linux without X Display.
    http://digital.ni.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6
    I'd like to know if it's possible to pass the command line arguments ( ./TEST A B C D) directly into the shared library without having to pass the arguments using a array of strings which would require to write code using DSNewHandle, DSSetHandleSize, extract the arguments and ..... (I'm not proficient in C, but if I don't have a choice I will do it and improve my C skills).
    int main(int argc, char *argv[])
            Test(argc, argv);
            return 0;
    Thanks,
    Michel
    Solved!
    Go to Solution.

    Well, you can always flatten it back into a space separated single string and pass it like that. Basically reverse what the OS does when it calls your main function with the command line parameters. And while the first element in the array is always the program name itself you can just skip that here, but then format all the rest into a single string.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Pass current url as report prarameter while using report viewer web part

    hello everybody
    is there a way to
    pass current url as report prarameter while using report viewer web part
    thanks in advance
    Sergey Vdovin

    Hi Evolex,
    Per my understanding that you want to get the current url and create an parameter to add this URL as its value, right?
    gernerally, we can use some code to get the current url but it almost impossible for us to get it automatically as value of the report parameter.
    In your senario, i suggest you to copy the url and specify values when creating parameters.
    Thanks for your understanding.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • No days or dates in weekly view

    Just recently my iCal in weekly view hasn't shown the days of the week and the dates either. I have gone thru everything in the prefs and the menus and cannot find anything to bring them back.

  • All ipod music missing but still can be seen in iTunes

    HELP! Equipment: iPod 60GB Photo running Windows XP (SP2) platform via USB I'm a first time user experiencing update problems. I've already loaded 7,000 twice via auto-sync then manually the second time. The first time I my music disappeared I bit th

  • Display PDF on the browser from BLOB column

    Hi All, I have BLOB column in the table where we are storing PDFs. I want to display PDF within the browser ( not as a download option) from that BLOB column, like clicking on the "Print" link. Please let me know if anyone has any suggestion. -Smith

  • Constant site errors

    Once again we are getting constant "web page error" when save a reply. Also no emails are being sent since yesterday. When clicking "Alert Me" the page jumps to my user profile then throws page error. This happens on one Win 8.1 and one Windows 7 sys

  • My colors are disobeying me.

    Offender - Photoshop CS5 I tell a vector layer to be 100% Cyan, 0% Magenta, Yellow and Black (by double-clicking the Layer Panel thumbnail and punching in values). I hit enter. Then I go back into it's color dialogue and I see that it's automatically