How to programmatically read the SequenceFile currently open (front most) ?

I have open in TS few sequences, they can be sequences or subsequences, but the one is currently open in TS. I would like to know from the ActiveX libs the one sequence file that is front most in teststand. I know I can enumerate on all open sequence files but I don't know how they are sorted and how to get the one that is open front most.
The reason for that is i want to run from the TS custom menu my own sequence that will do some action on the sequence currently open in TS. 
I attached my example VI to get the Sequence references of all open sequences in TS.  
Thx in adv... 
Solved!
Go to Solution.
Attachments:
TS.File.GetSequence.vi ‏29 KB

Help says the following about the InitialSelection property.
Contains references to properties, steps, sequences, sequence files, and executions that are selected or active when you start an execution. If the active window is a Sequence File window, the InitialSelection property contains non-execution versions of the selected objects. If the active window is an Execution window, the InitialSelection property contains execution versions of the selected steps, properties, and sequences as well as non-execution versions of the selected sequence file.
Are you going to run a sequence called from your Tools menu?  If that is the case you should be able to use the RunState.InitialSelection.SelectedFile properties.
I have done the following from a tools menu sequence to obtain a sequence.
If    ( PropertyExists("RunState.InitialSelection.SelectedFile.Path"))
         IF ( RunState.InitialSelection.SelectedFile.Path == "" || RunState.InitialSelection.SelectedFile.Path == RunState.SequenceFile.Path )
               /*Checks if there is a valid file open or you are just running the sequence in the Tools menu */         
                   Display File Dialog  to locate Sequence File.
     Else  Locals.Path = RunState.InitialSelection.SelectedFile.Path
Plus what did you mean by 'front-most' sequence file?
Thanks,
PH

Similar Messages

  • SapScript, How do I read the current line number?

    I have sections of text - each in it's own element with an 'include' of the standard text.
    These sections are variable in size.
    All elements are in the MAIN window.
    I do not want a paragraph to split over two pages.
    How do I read the current line number within the sapscript before the section prints so I can issue a new-page command at the beginning of the paragraph?
    Thanks!

    Yes, that does work for paragraphs.
    If I have multiple elements to print from within a loop where "at first, at each and at last" each call the Sapscript funtcion write_form - how can I keep the whole section together.  protect/endprotect will keep each element together but not the group of elements.
    There must be a way to find the current line number.

  • When I try to download Adobe Reader, the Adobe Installer opens a black box. The installer doesn't actually work. Any ideas how to fix? Thanks!

    When I try to download Adobe Reader, the Adobe Installer opens a black box. The installer doesn't actually work. Any ideas how to fix? I am using Windows 8 installing the English version. Thanks!

    Try the installer from http://get.adobe.com/reader/enterprise/

  • How to programmatically place the field in the canvas.

    Hello!
    Can you please tell, how to programmatically place the field BLOCK1.FIELD1 in the canvas CANVAS1.
    At the moment on the field value CANVAS = NULL.
    And when opening the form error "FRM-41014 Cannot set attribute of null canvas item..."
    Thank you

    Youcannot assign a canvas at runtime. Yu have to specify int at designtime and it cannot be changed at runtime. if you need an item in more than one canvas, use a mirror-item (duplcate the item and set the property Synchronize with)

  • I have a pdf registration form on my website.  It has a link that take the user to a payment page within my website.  They pay then submit the form.  The link currently opens in the same browser tab as the form and the user thinks that is the submission,

    I have a pdf registration form on my website.  It has a link that take the user to a payment page within my website.  They pay then submit the form.  The link currently opens in the same browser tab as the form and the user thinks that is the submission, which it is not.  I want my link to open into a new browser tab.  How do I do that?

    You can use the following JS code:
    app.launchURL("http://www.example.com", true);

  • When I'm checking my emails and click on a link that was sent to me in the email, how do I get the link to open?

    when I'm checking my emails and click on a link that was sent to me in the email, how do I get the link to open?

    Identify and remove adware
    http://www.thesafemac.com/arg/
    or  use Adware Removal Tool.
    http://www.thesafemac.com/art/

  • My wife wrote her resume. Wants to email it as an attachment only. But whenever it is received it comes as an attachment and as an open document in the body of the email. How do we stop the resume from opening in the body of the email?

    My wife wrote her resume. Wants to email it as an attachment only. But whenever it is received it comes as an attachment and as an open document in the body of the email. How do we stop the resume from opening in the body of the email?

    wyman41 wrote:
    She wrote her resume in Word.
    I don't have any problem attaching just a MS Word file in Mail. My process is pretty simple....with a message open I click the attach icon (paperclip) at the top of the message, then navigate to where the file is located and select it. I make sure I have the cursor at the bottom of the new message below my signature line. FWIW I use MS Word 2011.

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • How do I keep the source document open when linking to a target document using the destination option in Adobe X?

    How do I keep the source document open when linking to a target document using the destination option in Adobe X? Have several links to create in the source document and want to keep the source document and target document open at the same time.

    Go to Edit - Preferences - Documents and un-tick "Open cross-document links
    in the same window".

  • How do I save the photo currently on my home screen?

    How do I save the photo currently on my home screen of iPhone5 to my wallpaper photos or my computer?

    Sorry, there is no way to extract this wallpaper. Your best option is to take a screen shot & that will save to your camera roll.
    I'm not aware of any software that can extract this from your backup, but look at this:
    http://www.iphonebackupextractor.com/

  • How do I force the player to open in the center of my screen every time, and not way on the side?

    How do I force the player to open in the center of my screen every time, and not way on the side?

    Solution is very simple, Just choose firefox as your default browser.
    Follow these steps :
    * Open '''Options'''
    * Click on '''Advanced'''
    * Now open '''General''' tab and click on '''Make FireFox The Default Browser'''. See Image below.

  • In ios 7, how do I get the calendar to open each time in list mode?

    In ios 7, on the iphone 5, how do I get the calendar to open each time in list mode? It always opens is strange new mode and goes to list mode only if I click the search icon.

    For some weird reason beyond my comprehension, and I am a smart fellow I think; Adobe starting with acrobat/reader 8 has decided to hid the menu icon Ribbon (i guess you would call it) until you have a PDF open. In versions past if you had these icons on the screen you could actually use them to open Pdf's or create pdfs from scans.
    Pesonally for me its a dumb idea. But was justified as allowing for more screen area to view. The guy that thought up the idea should be taken out behind the barn and given 10 licks for stupid ideas. :-)

  • How can I read the printer snapshot file printers.xml

    How can I read the printer snapshot file printers.xml

    XML files are typically viewed using a web browser.
    Open the XML file and the default program should open it automatically.  If you are prompted to select a program, use the option that lets you choose a program and brows through the directories for your browser (for example, use Internet Explorer, Firefox, etc.).
    If need be, you should be able to right-click the file and select open with to choose the program to open it with.
    There are other XML viewers out ther, but web browsers are typically the default as XML is a web language.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • How do I resolve the issue Cannot open the file ".indd". Adobe InDesign may not support the file for

    How do I resolve the issue Cannot open the file ".indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing , or the file may be open in another application?

    Shouldn't the CC version be able to open any file created in an older version on InDesign?
    Yes, it ought to.
    If the older file wasn't yours (if someone emailed it to you,or burned it on a disc, or whatever), then I am almost willing to bet you a beverage in the city of your choice that it's not a complete InDesign file. That is, maybe it was zipped and renamed, or the beginning or end of the file was chopped off during download, or something like that. The only reason I'm not actually making the bet is that there is a remote chance that I'd lose, and maybe you're in Adelaide or Khabarovsk or somewhere where the cost of airfare to me would make that bet a very expensive bet for me to to lose. So no latte for you if I'm wrong!
    The script that Jongware posted will tell you what version of InDesign made the file to begin with. Additionally, if someone did something like rename YourFile.PDF to YourFIle.INDD, it'll report that it's Not An InDesign File. Because while SpectrumPCS is kinda right and that message can be generated when attempting to open a CS5 file in CS3 or whatever, it also spits out the same message when you just try to open an Autocad file, or a Windows system file, or a PDF, or any file that InDesign actually cannot open at all.

  • How can I keep the bookmarks toolbar open down the side?

    How can I keep the bookmarks toolbar open down the side?

    View > Sidebar, click Bookmarks to place a check mark ~~red:'''''OR'''''~~ Ctrl+B
    If the Bookmarks Sidebar is open when you Exit Firefox (File > Exit), it will be open when you start Firefox again.

Maybe you are looking for

  • 2ª via de Nota Fiscal e certificad​o de garantia.

    Olá Bom dia! Comprei um notebook Dell com vcs em Miami no Aventura Mall. Gostaria de solicitar uma segunda via da nota fiscal e certificado de garantia para o Brasil que paguei por 2 anos. Como devo proceder? Aproveito a oportunidade para me informar

  • Urgent help needed on 1 query

    Hello All, I have just started working in PL/SQL, I need some help on 1 urgent issue. i have a table lets say which has structure and values like below: ID Data Key Data Value 1 Firstname X 2 Lastname Y 3 Middlename Z but my query shd return me data

  • Ipod nano, new itunes, and windows vista

    Hello, I just recently bought a new computer that came with windows vista. With all the problems i've been having, I was sure that I would have problems with iTunes... Well everything went surprisingly well when installing the new iTunes and adding a

  • I can't find the Pages application

    i have already bought Pages as an app on my ipad and have now bought a macbook air. I went onto the apple store and downloaded the Pages app for mac's but now can't find the app even when i search for it, just the individual documents from my pages a

  • Need to install in different language

    Hi and thanks for your time: I'm in Poland, but my native language is spanish... Is there anyway I can change the InCopy program language from polish to spanish or english without having to buy anything??? Thanx in advance.