How do I run a script saved under a diffrent name

Hi
I have a well working script that I expand with other features and save it with a different file name.. However this new script seems to fail due to that it somewhere still has a reference to the original script...
How do I go around this without having to rewrite everything...
I use TestStand v.3.1
Thanks
Claus

Hi Antonio,
Thanks for your reply.. I could understand that the behaviour I saw in my .seq script was not a known problem, so I invetigated it further.. And I solved the issue
In a call sequence I had made it look in a specific file instead of "Use Current File"..
Regards
Claus

Similar Messages

  • How do I run a script on a .indb file?

    How do I run a script on a .indb file? What should I do differently than in running one on a single indd file?

    I do this like so:
    var inddFiles = GetFilesFromBook();
    for (var i = 0; i < inddFiles.length; i++) {
        inddFile = inddFiles[i];
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        doc = app.open(inddFile);
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        // Process document
        doc.close(SaveOptions.YES);
    function GetFilesFromBook() {
        var bookContent, file,
        activeBook = app.activeBook,
        files = [];
        for (var i = 0; i < activeBook.bookContents.length; i++) {
            bookContent = activeBook.bookContents[i];
            if (bookContent.status != BookContentStatus.MISSING_DOCUMENT) {
                file = new File(bookContent.fullName);
                files.push(file);
        return files;
    Here is the whole script that you can use as example.

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • How can I run a script last?

    Hiya,
    I have a single backup job running a single dataset. That single dataset has an include statement to include a dataset directory, which holds individual datasets for the several hosts I want to back up, each with potentially different parameters. This works well, the hosts back up in some order (I don't care), everything's happy.
    However, what I want to do is add a step on the end of this process to run a report on the admin server after all the backups are complete. That is, to run a script once, last.
    If I add an "after backup" command in the dataset, it runs it (as stated in the manual) on the client servers, after every backup, which is no good to me. I've tried creating a separate job and scheduling it at a lower priority a few minutes later than the backup job, but that seems to just run when it feels like it, I presume because there aren't any conflicts so why shouldn't it?
    Can anyone advise how I should be doing this?
    Related question... I've tried putting an "after backup" step on the Catalog backup job, but that appears to get run twice (I presume because there are two "include" steps in the catalog dataset)! Is this expected? How can I get it to just run once, after the catalog backup is complete?
    Thanks,
    David.

    Thanks Donna, but... no. It didn't work.
    We've actually purchased a license for OSB, so I've fired this question at our official support channel now, and they came back with the same answer at the same time (are you the Oracle techie looking at my problem, by any chance?). For the record here's (with some tweaks for readability in this context) what I've sent back in response to that article.
    From the article, I thought perhaps the following might do the trick:
    include dataset /Hosts {
    after backup optional "/usr/local/osb/pre-n-post after-fsd-hosts mail"
    But, from the log:
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 1 - open brace appears where not allowed (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "include dataset /Hosts {
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 3 - bad nesting (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "}
    So it appears I’m not actually allowed to do that. I don’t understand why that would be.
    The only other idea I have is to include a dummy backup step, backing up something really small (because OSB won’t let you run a backup without backing anything up - sigh!), tack a script onto that, and hope like heck OSB decides that it should run that last. All the documentation I’ve read gives the impression that datasets are all about scope, not order, so I’m not altogether confident that this will work. In any case, it seems a pretty kludgy way of doing it! And, given the next paragraph below, I’m not all that sure it’ll work in any case.
    My idea of scheduling a catalog backup for five minutes later than the client backups, with a lower priority, so that it runs when the client backups finish, also has a flaw - if I use two tape drives in parallel, it runs the catalog job in parallel with the last client job, which is completely useless. I want to put on the end of the tape a backup of the catalog as at just after the client backups, so that in the case of a disaster I can restore that and I’ll be good to restore everything else.
    In addition to being completely useless for the purposes of putting an “after” catalog backup on the end of the tape, it’s also completely useless for the purposes of running a script last - I tried the following:
    include catalog {
    after backup optional "/usr/local/osb/pre-n-post after-catalog mail"
    This ran the pre-n-post script twice, once for each component of the catalog, which is altogether not what I want it to do.
    I can’t think of any way to achieve a catalog backup on the end of the script except for scheduling it for some time later and hoping the dataset backups always finish by then. Ugly.
    The only way I can think to achieve the run-a-script-last is to munge all the datasets together into one humongous dataset file, and do stuff as in the article to try to bend OSB to my will (again, hoping that OSB obeys the order of statements in the dataset). Which, when I’m given the ability to use “include dataset /Hosts” to make it easy to maintain, seems a bit of a mean trick to pull on me. And, again, with two tape drives available I’m not at all sure it’ll work in any case.
    I'll post further results as they come to light...
    David.

  • How Can I run a script to all servers in my servers list

    Hi Guys
    I have a Servers list:servers.txt , it's including all servers i need to run a powershell script,how can I use the powershell to run a script on those servers? thank you.I just start to learn about powershell.

    You can pipe the results of Out-Command to Out-File (or Export-Csv, etc.)  I'm not sure what kind of objects you're expecting from this script, so I'll err on the side of caution and use Format-List * in the example:
    Invoke-Command -ComputerName $servers -FilePath c:\copy.ps1 |
    Format-List -Property * |
    Out-File -FilePath $home\Desktop\copy.log

  • How do you run a script?

    Hi...could someone please post explicit instructions on how to run a script in Leopard? I want to run the script below in order to delete all the originals from my iPhoto library and free up loads of space (I have 10,000 photos, almost ALL of them have been altered from the original). The problem is, I dont know how to run a script or even what a script is! Can someone post how to do this for the mot very basic beginner? Here is the script:
    mkdir ~/.Trash/iPhoto-Originals
    cd ~/"Pictures/iPhoto Library/Modified/"
    find . -type f -exec mv "../Originals/{}" ~/.Trash/iPhoto-Originals/ \;
    Thanks!
    Kevin

    If you wanted to do this on a regular basis, you could put those commands into an Automator workflow, save it as an applications, and then whenever you want to repeat this operation you just double-click on the Automator file.
    Applications -> Automator
    Custom -> Utilities -> Run Shell Script
    Drag those shell commands into the Automator *Run Shell Script* window, replacing the word cat you will see when the *Run Shell Script* panel opens.
    Save As...
    File Format: Application
    Save

  • How can I run a script on suspend/resume?

    I'd like to run a script when a machine is about to suspend and another after it resumes. Is this possible?

    You can pipe the results of Out-Command to Out-File (or Export-Csv, etc.)  I'm not sure what kind of objects you're expecting from this script, so I'll err on the side of caution and use Format-List * in the example:
    Invoke-Command -ComputerName $servers -FilePath c:\copy.ps1 |
    Format-List -Property * |
    Out-File -FilePath $home\Desktop\copy.log

  • How to open Excel Template save it under a different name and then write and save data to it at regualar intervals

    I have an excel template that I have created. I am opening that template, saving it under a different name, and then writing and saving data to that excel sheet at regular intervals. It is giving me an error 5, I understand what this means and I am trying to work around it.  However after too many hours spent trying to figure it out, I have asked for any help or input. I have attached an example vi, not the actual one since it is very involved.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Power Cycle Test 3.0 Excel Save Testing.vi ‏18 KB

    This snippet encapsulates most of the previous suggestions, and adds a few of my own.
    The first code shows one (simplified) way of building the output file name.  It incorporates the Build Path function to combine Report File Path with the file name (don't need initial "\"), builds the File Name with Format into String, getting the Time part of the name from Format Date/Time String.  I also use Build Path to get the Template path.  Inside the For Loop, another Format into String gets the data that is placed in the 10 Excel cells.  We don't write anything yet -- we're only filling in the cells in the WorkSheet (think of how you use Excel -- you could, but probably don't, save the WorkBook after every cell entry, you wait until you are all done and then do a Save, followed by closing Excel).  Finally, when we are done, we save the file using the output name we want to use, then close Excel (which disposes of the Report Object).  If we want to generate another report, with another (time-based) name, we can put this code into a sub-VI and simply call it again.
    Don't worry if you don't have LabVIEW 2014 (which was used to save this snippet) -- most of the code comes from the original that you posted, so it should be a pretty simple edit to change that code to match this.
    Bob Schor

  • How do i save a numbers doc under a different name

    I'm trying to save a numbers document under a different name.  I could change it easily yesterday but it's not working today?

    What version of OS X and Numbers are you using?
    If you are working under Lion and the latest version of Numbers use File > Duplicate and then Save.
    Mario

  • How can I run a script from path?

    Hi all
    How can a illustrator script be run from a path by double clicking the script file not from illustrator menu->scripts.
    thanks in advance
    THAMIL

    You can modify the script to use COM.  For example, when the script is run in AI, there is an assumed application object - you can just use the members of the Application object without having an explicit Application variable.  To do this in a standalone javascript, create a Illustrator.Application object:
    var app = new ActiveXObject("Illustrator.Application");
    var activeDoc = app.activeDocument;
    You would do something similar for any object that would otherwise need to be created with new.  You can get a list in the the registry - HKCR\Illustrator.*
    Note that .length and collection[i] don't work when you do this.  Use .count instead of .length.  You need to use Enumerators:
    var textEnum = new Enumerator(doc.textFrames);
    for (; !textEnum.atEnd(); textEnum.moveNext()) {
        var txt = textEnum.item();
        txt.contents = "text";
    You also have to use WScript.Echo() instead of alert().
    Phil

  • How can I run a script when an application quit??

    Greetings all,
    I'm trying to write a script, which can be triggered automatically (to do some stuff) at the time when a given application quit. I was playing around with this test script, taking "TextEdit" as an example - it just prints a message when TextEdit exits.
    ==========================================
    +*set targetapp to "TextEdit"*+
    +*tell application "System Events" to set rr to name of the processes*+
    +*--if targetapp is not in rr then*+
    +*-- tell application targetapp to activate*+
    +*-- tell application "System Events" to set rr to name of the processes*+
    +*--end if*+
    +*set rr1 to rr*+
    +*repeat until rr1 ≠ rr and targetapp is not in rr1*+
    +*tell application "System Events" to set rr1 to name of the processes*+
    +*do shell script "sleep 1"*+
    +*end repeat*+
    beep
    +*display dialog (targetapp & " is not active anymore !") as string buttons {"OK"} default button 1 with icon 0*+
    ============================================
    Unfortunately, it seems to work if I launch TextEdit using the script itself; it doesn't work with first +*"if - end if"*+ block commented out. Does anyone know how can I achieve this? Any help or suggestion greatly appreciated. Cheers!!

    Hi santanu,
    I'm sure you can use a variation of this application of mine to do what you want. It monitors all running processes and then reports when one closes.
    --initialize previous_processes
    global previous_processes
    tell application "Finder"
    set previous_processes to get the name of every process --use "whose visible is true" to remove the background ones
    end tell
    --monitoring script
    on idle
    tell application "Finder"
    set current_processes to get the name of every process
    end tell
    set numberofprocesses to count of items in previous_processes
    set counter to 1
    repeat while counter is less than (numberofprocesses + 1)
    if current_processes does not contain item counter of previous_processes then
    display alert item counter of previous_processes & " quit!"
    end if
    set counter to counter + 1
    end repeat
    set previous_processes to current_processes
    return 1 --runs every second...can be changed
    end idle

  • How to get photos that are saved under Events in iPhoto to external drive

    Hi,
    I do photo slideshows on my Windows PC. I have all my photos under specific names Events in iPhoto on my Macbook Pro. How do I get a group of photos onto my Simpledrive external hard drive. I have tried to save it to desktop then drag the folder in the Simpledrive but it does not work.
    I was hoping someone out there could help me please.
    Thanks
    Dave

    Welcome to Apple Support Communities
    Mount the external drive and then open the destination folder
    Run iPhoto and select the Event then 'Select All' (command-a) and drag those items to the destination folder (just tested this on a zip drive and it worked as expected)
    Make sure the external drive is correctly formatted for the Mac to write to, while it can read NTFS it must be FAT32 for writing.

  • How do I run a script at shut down?

    Hi folks,
    I wrote a script that runs at login that gets my dynamic IP and creates a simple web page with a link to my local computer address for Personal Web Sharing, and then uploads that web page with the link to my ISP homepage server.
    I wrote another script that creates a web page with no link, but contains a message that my home computer is shut down.
    This way, my ISP homepage can have a file that either points to my dynamic IP or has a message that my web server is down.
    So How do I get the shut down script to run at shut down?
    The shutdown script is basically just this to upload an existing html file:
    curl -T shutdown_message.html -u userid:password ftp://ftp.web.isp.server.com/
    or you can dynamically create an html file with current date and expected date you will be back on-line, or whatever, with some simple perl code.
    Thanks.
    G3 Desktop, SonnetEncoreZIF G4 1GHz, 768MB, WingsAV-6MB, DVR-106D, 60GB Maxtor   Mac OS X (10.4.7)   PCI: TempoUltraATA66-120GB Maxtor, 120GB Seagate; TangoUSB/FW; Radeon9200-17"LCD

    Thanks, guys. For the most part I think the DSL keeps the same IP except when I power down. My power went out just as I finished my login upload script, so my first test was out of necessity, and it worked. I could set it up as a cron job on my local machine to regularly test the IP and upload the page.
    reese, When I have a power loss, or non-planned abnormal shutdown, my web page will be out of sync, unless I use something on the ISP server, so that is a good point. I am not sure what kind of scripts I can run on my ISP web server. I don't know if I can set up a regularly scheduled script, or if it would only respond to requests, then it could perform the test on demand. I need to give that some more study. Good suggestion.
    As far as a normal planned shutdown, I thought of one possible work around: to create a script that runs my upload and then executes the shutdown, either by AppleScript or UNIX shutdown command line, not sure which is the most graceful.
    Gary, I looked in the /System/Library/StartupItems and found the Apache scripts in there. They have a StartService and StopService methods defined. I think I could use that as a template to create my own, or just add my scripts to the Apache methods. Since basically I want to run something as Apache is started and again when it stops. That may be the most graceful method. As Apache can get shut down when the machine remains on via System Preferences. You solved my problem Gary, but I marked your message as helpful already. Post back again and I'll give you the Solved Star & points.
    G3 Desktop, SonnetEncoreZIF G4 1GHz, 768MB, WingsAV-6MB, DVR-106D, 60GB Maxtor Mac OS X (10.4.7) PCI: TempoUltraATA66-120GB Maxtor, 120GB Seagate; TangoUSB/FW; Radeon9200-17"LCD

  • How do I run a script on a folder which is only set to run on an individual file?

    I want to use the layer to file script on an entire folder of about 40 files.
    I tried creating an action with "Insert menu item" but when I run the batch file it crashes illustrator.
    I am thinking I should combine the savedocsasPDF example script with the layer to file script but I am having trouble. 
    Would someone be able to point me in the right direction please?
    Thanks!

    I do this like so:
    var inddFiles = GetFilesFromBook();
    for (var i = 0; i < inddFiles.length; i++) {
        inddFile = inddFiles[i];
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        doc = app.open(inddFile);
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        // Process document
        doc.close(SaveOptions.YES);
    function GetFilesFromBook() {
        var bookContent, file,
        activeBook = app.activeBook,
        files = [];
        for (var i = 0; i < activeBook.bookContents.length; i++) {
            bookContent = activeBook.bookContents[i];
            if (bookContent.status != BookContentStatus.MISSING_DOCUMENT) {
                file = new File(bookContent.fullName);
                files.push(file);
        return files;
    Here is the whole script that you can use as example.

  • How do I run a script so that the user does not have to click into and out of a read-only calculated numeric field?

    Hi all
    I have a read-only calculated field, and I want to build actions on it, dependent on what the answer to the calculated field is.
    I have used action builder, and it works, but only if the form filler clicks in and out ("exits") the field, which they didn't have to enter in the first place, because it populates as a result of a previous script.
    To be more precise, The questions asked before this field are:
    Date of submission (submitdate):
    Date of event (eventdate):
    Calculation occurs (days between event and submission), and answer is populated in a field called 'daysbetween'
    Now I have a set of conditions:
    If the daysbetween is < or = 14, then I want a message to come up saying ineligible to apply
    If the daysbetween is >14 and < or = 28, then I want a message to come up saying a fast track fee will be applied, and I want the fast track fee box to be populated, and I want the fast track fee box to appear.
    I used the action builder to get all of this to work, except that it only works if the user then clicks in and out of  the 'daysbetween' field, which they shouldn't have to, because it's already calculated for them
    I feel like I have to put this script in an earlier field...but I don't know where - action builder won't let me do it in the 'eventdate' field
    Thanks in advance

    Put a shift register on the border of your loop. Have a case statement that contains the "Get time" function in one case of the case statement. Make that case = 3 and wire the loop iteration to the case selector. Have the time value loaded onto the shift register in the "2" case (interations count from zero), have the shift register passed through on all others ("Default"). Then subtract this time from current to get elapsed time. You probably want to put the subtraction/comparison in a "sub-case" in the "default" that only is valid for interations > 3 or you will get some really ugly "times" until the shift register is loaded, or you could initialize it from outside the loop with the time, but this will cause it to show elapsed times from the beginning that suddenly jump back to a low number after iteration 2.
    P.M.
    @ Corning? Which one? I was doing LabVIEW at Corning back in '96
    Message Edited by LV_Pro on 09-23-2005 10:07 AM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    elapsed time.vi ‏24 KB

Maybe you are looking for

  • Adding JMenu directly to a JPanel

    I am trying to add a JMenu directly to a JPanel, but it isn't functioning properly. It shows up, and looks the way I expect (with an arrow, like a sub-menu), but it doesn't display its popup menu when clicked. If I add the menu to a JMenuBar, and add

  • My screen died!! Help!

    Last night I was using my unplugged MacBook pro, I was monitoring the battery left and when it got to 22%, the laptop turned itself off. (is that normal?) I rebooted it but the screen hasn't recovered, I've restarted a few times and I hear the engine

  • EDI structure error

    Dear SAP experts, Can you advise me regarding this error? Error: javax.resource.ResourceException: --- Conversion of synchronous request from module chain ended with errors ---[Error:ID=2023;LEVEL=1] InhouseDocReader readNextSegment(): offset[1997034

  • Unistall Conduit search engine

    I keep getting a pop up for Flash player to update.  What it does is install a 'Conduit search engine" on Chrome browser.   2 questions: Why is Adobe sending out this download? How can I uninstall it? Alan Zell  [email address removed]

  • Slow Encoding in Premiere Pro CS5

    Hey there, I'm working with Adobe Media Encoder 5.0.1 (CS5), and I've found that it encodes very slowly (taking hours to encode 15 minutes of very simple video cuts). Looking over my system's performance, my hard drive isn't impacted at all (it has a