Automating "find in files"

Hi,
I'd like to programatically initiate a "find in files" search within a teststand sequence.   Is this exposed in the teststand API anywhere?  I am browsing the IEngine methods but all I see is "findfile" which isn't really what I want.
thanks for any help
David Jenkinson

Hi David,
Use the Expression Browser from an Statement step to obtain the FindFile() function.
Regards
Ray Farmer
Message Edited by Ray Farmer on 09-07-2008 08:44 PM
Regards
Ray Farmer
Attachments:
FindFile.PNG ‏51 KB

Similar Messages

  • How to find duplicate files in Finder with Automator or Apple ScriptEditor

    Can anyone tell me how to find duplicate files in Finder with Automator or Apple ScriptEditor.

    D'oh!  It's actually fairly easy - I just right clicked on the file, Get Info, Artwork tab, then dragged the picture to the desktop, from where I can do what I like with it.  Never mind, nothing to see here, carry on.

  • Using Terminal to Find Locked Files

    Hello all,
    I am a photographer and often use the locking feature on my camera to lock certain images, ones that are good shots.  With Windows, I was able to sort by whether a file was locked or not.  However I am finding that Mavericks does not have this feature.  Therefore I have resorted to using terminal to find locked files.  However I was wondering if I could get assistance in creating a script/command that would take the results of the files I found locked and either copy or move them into a subfolder.
    IE: I have an event folder called BRB-Team1VsTeam2.  I use the command "find . -flags uchg" to find the locked files.  What I need to do now is get the returned result and either copy or move into a subfolder called "locked".
    I tried "find . -flags uchg && cp /locked" but I know the logic isn't quite there but I haven't played with terminal too much to know what I am doing.
    So anyone have a solution to this?  Or know of an application to at least let me search/filter/sort by the file status (IE: Locked vs unlocked)?

    Here is the basic idea, adjust as necessary. The -d option limits the depth into the folder you are searching. You don't need it; I just added if you want to limit the depth into subfolders.
    find /search/path -d 1 -flags uchg -exec cp {} /destination/path \;
    You could roll this up in an Automator workflow, Service, or Folder Action if you want:
    By checking the "Show this action when the workflow runs" you can choose the destination folder at run time. If always the same, leave it unchecked.
    A Folder Action would work on the items added to a particular folder. The find command would have to be modified.
    A Service could be used to pick the source folder, or to add a shortcut command.

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • How do I find folders/files now showing up in Finder or Spotlight?

    Hi all,
    I have hidden a number of files/folders from myself some time ago, and have insofar been unsuccessful in finding them anywhere on my hard drive.  These were originally in a password-protected .dmg I created in Disk Utility, but I moved them out of there to place in another .dmg, and now cannot recall where I put them.
    It's possible they're in my /system or system/Library directory - most of these files, by the way, are .jpg's.
    IS THERE ANY WAY TO FINELY COMB THROUGH YOUR HARD DRIVE TO FIND THESE FOLDERS/FILES??? I REALLY DON'T WANT TO HAVE LOST THESE!!!
    It was the suggestion of Apple to see if anyone knows of a script that can be run in Automator to target this kind of problem?? Or a utility otherwise?
    THANKS!!

    Just as a rule, don't store anything in /system. that's for Apple's specific use; You don't really gain anything in secrecy by hiding stuff there; you just give yourself a permissions headache for no good reason.  In fact, stuff you hide their might pop up unexpectedly - for instance, if you reinstall your system and try to preserve your accounts, any unexpected files in /system may show up in an easily accessed recovery folder.
    Check out EasyFind - another universal search app - if Find Any File doesn't work for you.

  • Automator: Wait for file

    I'm trying to write an automator workflow, that i can remotely trigger using something like dropbox. What I want is to have it watch a folder, and when it finds a file with a specific file, it moves on in the workflow. I haven't been able to find anything that would wait like this. Does it exist? Thanks

    There are a few solutions to this, you'll need to decide which one meets your needs best.
    First off, your script on Computer B could poll the size of the file, waiting until the file stops increasing in size for a sufficient length of time - long enough for you to assume it's finished copying, at which point you can invoke the rest of your script.
    The other options depends on the ability of Computer A and there are two classic solutions.
    One is to have Computer A write a tempoary lock file (or, conversely, a done file). Your script looks for this file to determine when the file is ready - in the case of a lock file, you create the lock file to indicate that the file is not ready, then write the file, then delete the lock file when it's done. The script on Computer B notices the lock file being deleted and knows the correspoinding real file is ready.
    The variation on this is to have a done file - you write the file to the disk and when its finished you create/update the done file to indicate the new file. Your script feeds off this done file to know when a file is ready.
    Both these options involve the use of temporary semaphore files that signal to computer B when to proceed.
    The other option that doesn't use semaphores is for Computer A to write the file to a temporary subdirectory, rather than the drop folder. It then moves the file to the drop folder when it's ready. In this way the script on computer B doesn't need to worry about how long it takes to generate the file.
    All the latter options involve additional smarts on the source machine A since that's the only one that really knows the state of the file.

  • Help:Can not find the file in jar!

    Hello everyone:
    I build a project using Netbeans 5.0 and make a jar file with it...
    The code in the project as follows will throw an exception described that it can not find the file named datasource-config.xml
    String dataFilePath = getClass().getResource(dataFile).getPath();
    //System.out.println("filepath:"+dataFilePath);
    InputStream input = new FileInputStream(dataFilePath);
    when I run the project with the main() function as an entry it works perfectly and output:
    filepath:/C:/projects/java_project/search/build/classes/com/cn/wxjt/lucene/config/datasource-config.xml
    But when I compressed the project with jar and run it , it will show:
    filepath:file:/C:/projects/java_project/search/dist/search.jar!/com/cn/wxjt/lucene/config/datasource-config.xml
    there is a (!) between search.jar and /com/cn/wxjt...
    I dont know why I generate a ! symbol in the file path... Is it cause the exception->
    java.io.FileNotFoundException: file:\C:\projects\java_project\search\dist\search.jar!\com\cn\wxjt\lucene\config\datasource-config.xml
    If you have any idea, plz tell me.
    Thank you and best wishes to you !
    :)

    If the file you want to read is in your jar file, use
    getClass ().getResourceAsStream
    (relative_path_file_name)Hope that help,
    Jackhey jack i want to open the file as new File
    i m using this.getClass().getResource("resource/backend.xml");
    the resource is the directory inside the jar file.
    when i prints the url it shows:
    the jar file is in the WORK directory
    URL : jar:file:/home/neeraj/WORK/show.jar!/resource/backend.xml
    now when i creates new File using the url.getFile() method the file does not exist.
    although the same programs runs well when i uses the InputStream
    so plz tell me cant I create a new File from the above method????
    thanks in advance
    with regards
    neeraj

  • Move all my music to another folder but Itunes can't find the files!

    I have all my music on my desktop in small folders for each artist.
    But now i don't have room anymore, because i have to much music.
    So i want to move it all in to a folder called "Music". But when i do that
    Itunes can't find the files, and i have to search for each file, to find the new location instead of the desktop. How do i move my music more easily? So i don't have to synchronize it all in again, with the right album covers and that..
    Please, need some help here!

    You need to open your preferences file in iTunes and click on advance then select the location of where you put the folder.  http://support.apple.com/kb/HT4527

  • I have updated my iphone software from ios4.1 to 5.0.1(9A405) through itunes and i want to find the file which i download but i can`t find it in itunes where can i find it

    I have updated my iphone softwarefrom ios4.1 to 5.0.1(9A405) and i want to jailbreak my iphone to download cydiaafter i do that i download programe named sn0wbreeze2.8b11 but when i startedto jailbrake the programe ask me to drag&drop or browse for ipsw while ialready downloaded but through itunes i try to search on itunes store to get itand drag on this programe but i didn`t found it so, Kindly please tell me howcan i find this file to continue jailbreak my iphone if u have an answer to myproblem please e-mail me at *****[email protected]  or just reply in zis discussion

    See this
    If you can't update or restore your iOS device

  • HT3986 I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation dis

    I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation disc which, then said the installation had been successful.
    Outlook is still not working.  Can anyone please advise me on what to do next.

    Remove MS Office 2011 completely (here are instructions) and reinstall it.
    It's not a simple or fast process but it is important to follow all of the steps in order to get all the files that Office scatters around. This will not affect your data files, only MS Office and its preferences.

  • How Do I use TM to find a file on my computers Idisk from today's backup?

    Where do I find the file that is on my Idisk's Time Machine Backup that was on my laptop this morning when TM backed up????? My Idisk had a problem this morning and when I sought help, they had me hit the stop and restart the syncing. The problem is that even though there was a file on my Idisk on my computer from last night, the Idisk syncing reset every file from the mobileme cloud to my laptop and the file on my mobileme cloud was from 2 days ago. Not the updated one from last night. I teach and my attendance is all taken and stored on the Idisk (and synced) from all my classes. Wed & Thursday attendances were on my laptop correctly. (I know because I checked BEFORE they told me to restart the sync button on preferences. My laptop did its normal BU this morning so I am trying to find the excel attendance file on the backup. Can anyone help????????
    I don't know why that happened but it did!!!
    Thanks for any help you can provide.
    Skip

    Dear Thomas,
    I entered TM and found the sparsebundle under the Filesync library. However, it appears NOT to be recoverable and I tried double clicking on it but it doesnt do anything other than show a summary of what it is.
    By the way, I really do appreciate your comments and agree completely. Something strange happened with my syncing of Idisk (which is set to "automatic"). It has been working fine for years. But for some reason, it stopped two days ago and did not let me know. When I tried to put something manually on it (through drag/drop), it never showed up on the Idisk on the cloud which made me notice and check it out by going to Mobileme through the browser. I then went to the tech service for Idisk and they explained that something probably got corrupted so just hit STOP syncing and then hit Automatic again. Which is what I did. Then everything from the cloud went to my Idisk on my computer and for some reason, the latest version of my excel spread sheet for attendance showed two days ago, not last night. so I lost wed/thursday classes. I KNOW it was on my Laptop which is backed up to TM every morning.. Thats why I believe that the latest file IS on my TM backup for this morning. But I can't get to it. Any other help would be appreciated.
    Skip

  • Can't find imovie file on my hard drive

    I have a imovie file on my hard drive that I can't find. I really want to delete it so
    that I can free up some room on my hard rive. It's at least 15 gigs big. I tried using the search icon in the upper right hand corner and I tried using the 'find' option under the 'finder' menu, searching for any files over 5 gigs in size. Can anyone help me find this file so I can get rid of it?
    [email protected]

    An iMovie project is a package, not a file; the actual files inside it are smaller. Use a tool such as WhatSize to locate it.
    (23171)

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.

  • My hard disk suddenly filled up and I can't find the files

    that are causing my hard disk to fill up. I was watching some videos that was on an external drive on my computer using vlc. I finished one movie (.avi file) and then tried to watch the second one in the series. However, the vlc application would not open it. I tried several times. I gave up and tried opening it with the quicktime player. Even though it opened, I got a message that my startup disk was full. That was strange because I am sure I had about 20GB as I was keeping a close eye on my hard disk capacity. I had recently deleted many video files and so I had a rough idea of how much hard disk I should have.
    Anyway, I deleted some movie files to make space and then I checked my hard disk with Disk Inventory X.
    When I did that, I found some strange files.
    There are some temp files some of which are 1GB. The path is private/var/vm/tmp. One file is labeled a Quick Time player launcher document.
    Another one is called "sleepimage". Format is HFS+. It is 4GB. It was modified recently (yesterday). Its path is private/var/vm/sleepimage.
    I don't want to delete anything important by accident.
    I just think this is strange and want to find these files but when I click "Open", it says I don't have permission and I have to locate them in Finder. However, when I type "sleepimage" in Finder, nothing comes up.
    I really want to get rid of any files that take up a lot of space on my computer and that shouldn't be there. Do you think this is some kind of virus? And that's why my computer is filling up with some strange files. There are also many swapfile documents that are 1GB in size.

    I think the problem is Quick Time Player. I am using OS 10.6.8 by the way.
    I tried it out again.
    I had about 26 GB of space before I played an .avi video.
    After the movie started to play (it was slow to load), I got a warning message that my startup disk was full. I opened Disk Utility and it told me I had no space left (about 20 MB or something like that was left).
    I watched to the end of the movie.
    Then I quit Quicktime Player.
    And I shut down the computer.
    I turned on the computer and checked Disk Utility. I have about 26 GB of space.
    I think for some reason Quicktime Player uses up a lot of the disk space when it runs movies that are problematic. This movie I was watching did not open with vlc.
    I normally use vlc to watch movies.
    Probably it doesn't use up this much space when the movie is OK.
    I think there's a problem with this particular movie. It is about 50 MB so it's not that big a file. I watch .smi subtitles with it. The Quicktime Player automatically loads the subtitle file in this case because the subtitle file has the same name as the movie file.
    I watched about 10 movie files from the same series that I downloaded together and did not have any problem watching them. I watched them on vlc. But this latest movie had problems I think (as I repeat). It did not load on vlc even though I waited for a minute, and normally movies load instantly on vlc. 
    So I think that movie file caused problems. It made QT player use up a lot of hard disk space.
    I had better avoid watching that movie in the future. I don't want it to wreck my hard drive.
    So to sum up, everything is back to normal. I have the hard disk space that I should have. However, I am scared of damaging my hard drive due to shonky movie files that eat up all the space when they are played using QT player, and so I will not watch those files in the future, as I do not know why the files do that.

Maybe you are looking for

  • Need help in displaying value in DATAPROVIDER

    Suppose i drag an EJB component method "getALL( ) "into the datable. This getALL ( )returns a collection of 'Person' value object Person( ){ String name; String address; Integer telephone' Collection Cars; Theoritically, i can display all the particu

  • Cannot install Windows 8 Consumer Preview on MacBook Air 11" (Late 2010)

    Hi, I'm trying to install Windows 8 Consumer Preview on my MacBook Air 11" (Late 2010 model) via Boot Camp assistant. I've hacked the Info.plist of the Boot Camp Assistant to allow it to create a bootable USB installer drive. After successfully creat

  • Help with render settings in Speed Grade

    Ok, I have been using Premiere Pro, After Effects, Photoshop, and Illustrator for a while and have a good work flow using them. Now I want to add production value to my work. I just started using Speed Grade a few days ago and I am impressed with wha

  • How to xml file load in actionscript 3.0

    Hi surfers, How to xml file load in actionscript 3.0, How to get xml data. Thanks in Advance. Pls give me ASAP, i'm struggle here.

  • Exit Button o Next slide

    I have embedded flash file in power point presentation on one of the slides to full screen. When I play my PPS I cannot do anything other than the button on flash file. I cannot go to the next slide or exit. I have used a exit button in fla file with