Need an app or a script to find a list of files and retrieve them

A few years ago at an old job I used an application that could search a hard drive for a list of images all in one shot. The names of the images were typed into a txt file. the text file was used as the search list and the application would report back if the images were found and it would retrieve them. Where can I get my hands on something like This or can it be built in Automator?

'I used an application that could search a hard drive for a list of images all in one shot ... and it would retrieve them.' - desired result is too vague.
'Where can I get my hands on something like this ... - perform a 'Google' or equivalent search.
"... or can it be built in Automator?' - possibly yes.
On your behalf the above request is re-written below.
Can someone assist me in AppleScript scripting. I am trying to open a '.txt' file which lists on each line a file to search for, and if found - to open its containing folder. Is such a process also possible with 'Automator'? Thank you for any assistance.
One possible AppleScript solution:
-- Code starts here --
set tFile to read (choose file) -- One was to obtain the file, to open.
set tPars to paragraphs of tFile -- create a list of paragraphs of selected file.
repeat with i in tPars -- Cycle through the list of paragraphs.
with timeout of 0 seconds -- Prevent AppleScript timeout error.
set tItems to paragraphs of (do shell script ("locate " & (quoted form of i))) -- Obtain list of found filename files.
end timeout
repeat with j in tItems -- Cycle through the list of found file.
try
set {oAStid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"} -- Extract container of file.
set fPath to text items 1 through -2 of j
set AppleScript's text item delimiters to "/"
set fPath to fPath as string
set AppleScript's text item delimiters to oAStid
do shell script ("open " & fPath) -- Open container of file.
end try
end repeat
end repeat
-- Code ends here --
If the above sample code is not exactly what you seek - then edit the code accordingly; and / or post requests with specific details.
'Is such an action also possible with 'Automator'?' - please post an properly constructed request to the 'Tiger - Automator'
forum.

Similar Messages

  • VB Script to find the last modified file and time in a directory

    Hi,
    I am new to VB script i need a script to find the latest modifed file and last modifed time in a directory(Contains  folders and sub folders inside it). it has to go through all the folders and get the latest file and last modifed time.

    Thanks it worked for me Get-ChildItem C:\Users\sujith.reddy.komma\Desktop\Suj1\* -recurse |?{-not $_.PsIsContainer} |Sort LastWriteTime -desc | select -first 1 now in my script i have hard coded the directory i need to run this script in different
    servers from one location i will put all the different paths in one text file and ineed to pass them to this script can you help me with this?
    Essentially you are incrementally asking us to write each line for you.  I recommend freeing yourself of this misery and leraning PowerShell.  THe answers to all of your questions are learned in the first few hours of study.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • Have an older Macbook Pro 10.6.8 tried to update it to XMavericks. Discovered that my microsoft apps are not compatible. Can I keep my files and convert them?

    Have an older Macbook Pro 10.6.8 tried to update it to XMavericks. Discovered that my microsoft apps are not compatible. Can I keep my files and convert them?

    Use a product such as LibreOffice, the iWork applications, or Microsoft Office 2008 or newer to open them.
    (107914)

  • PS Script to find the list of users and the groups in a Workgroup server

    Hi There, could you please explain on how to get a complete list of local users and local groups in a "Workgroup" server to which they belong to using Powershell. I'm able to get the users list but couldn't find any help in finding
    the script to find to which localgroup the user belong to. Anticipating your response. Also let me know the cmdlet for Win2k3 servers to find the same.

    Here's some code from David Pham (don't remember wher I fund this code):
    Trap {"Error: $_"; Break;}
    Function EnumLocalGroup($LocalGroup)
    $Group = [ADSI]"WinNT://$strComputer/$LocalGroup,group"
    "Group: $LocalGroup"
    # Invoke the Members method and convert to an array of member objects.
    $Members= @($Group.psbase.Invoke("Members"))
    ForEach ($Member In $Members)
    $Name = $Member.GetType().InvokeMember("Name", 'GetProperty', $Null, $Member, $Null)
    $Name
    # Specify the computer.
    $strComputer = gc env:computername
    "Computer: $strComputer"
    $computer = [adsi]"WinNT://$strComputer"
    $objCount = ($computer.psbase.children | measure-object).count
    $i=0
    foreach($adsiObj in $computer.psbase.children)
    switch -regex($adsiObj.psbase.SchemaClassName)
    "group"
    { $group = $adsiObj.name
    EnumLocalGroup $group }
    } #end switch
    $i++
    } #end foreach

  • Deleted the app in the dock that compiles all your open files and fans them out as icons. What is it and how do I get it back?

    When I bought my macbook pro, I deleted the app in the dock that complies all your open files together. When you click on the app it fans all the icons out. What is that app called and how do I find it again/get it back??
    Thanks!

    okay... got that...but before I deleted it, it would "fan" all my open web pages, or open PDF files. So they were in a little folder as opposed to lined up beside my trash bin?
    make any sense?

  • Script to find if list of Apps patches exists in DB 'A' but not in DB 'B'

    Hi All,
    DB:11.1.0.7
    Oracle Apps:12.1.1
    OS:Linux 86x64 bits Red Hat
    Could anyone please share the script to find if list of patches exists in DB 'A' but not in DB 'B'
    Thanks for your time
    Regards,

    We have already answered you, not sure why you keep asking the same question!
    SELECT bug_number,creation_date from ad_bugs where bug_number in
    ('1234','5678','56783','4321','765432');
    I get the list of patches out of the above say - '1234','5678'
    Now how to get the list of patches out of the above list of 5 patches which are not in the DB 'A' .I know this could be done manually but this is just an example as there may be hundreds of patches like this in ad_bugs to extract and we cannot manually do it in excel or any other way bit through a queryRun the same query in Database B and compare it with the output of Database A. Or, simply create a database link for Database B from Database A and run this query from DB A:
    SQL> SELECT bug_number, creation_date
    from ad_bugs
    where bug_number in ('1234','5678','56783','4321','765432')
    minus
    SELECT bug_number, creation_date
    from ad_bugs@<DBlink to DB B>
    where bug_number in ('1234','5678','56783','4321','765432');Thanks,
    Hussein

  • Hello i need a help about script to export translatable text strings from ai files and import them back

    Hello i need a help about script to export translatable text strings from ai files and import them back after editing, thanks in advance

    Lanny -
    Thank you for taking the time to help with this problem. Can I just say however that as someone who has posted a first comment here and quite clearly never used a forum like this before, your comment unfortunately comes across as very excluding. It makes me feel there are a set of unwritten rules that I should know, and that I don't know them shows that the forum is not for me. In short, it's exactly the kind of response that stops people like me using forums like this.
    I'm sure it's not intended to be received like this and I am sure that the way you have responded is quite normal in the rules of a forum like this. However, it is not normal for those of us who aren't familiar with forums and who only encounter them when they have a genuine problem. This is why I hope it is helpful to respond in full.
    The reason I posted here is as follows. I was directed here by the apple support website. The original comment seemed to be the only one I could find which referred to my issue. As there is no obvious guidance on how to post on a forum like this it seemed perfectly reasonable to try and join in a conversation which might solve more than one problem at once.
    Bee's reply however is both helpful and warm. This could in fact be a template for how new members should be welcomed and inducted into the rules of the forum in a friendly and inclusive way. Thank you very much indeed Bee!

  • Need scanner App for Dock. I have Maverick 10.9.5 and Epson Perfection V500 photo. My present app 3.7.1 won't work. Otherwise I have to go into System Preferences every time I scan to Select to switch from the Printer. Thanks for help.

    Need scanner App for Dock. I have Maverick 10.9.5 and Epson Perfection V500 photo. My present app 3.7.1 won't work. Otherwise I have to go into System Preferences every time I scan to Select to switch from the Printer. Thanks for help.

    You might give VueScan a try. It should work with your scanner. There's a demo version that you can use initially.

  • My iWeb image names are incompatible with FTP servers and must be renamed but I can't find the images in iWeb. I can upload to a desktop file and change them there but then I would need to download them to a new site in iWeb to publish them.

    my iWeb image names are incompatible with FTP servers and must be renamed but I can't find the images in iWeb. I can upload to a desktop file and change them there but then I would need to download them to a new site in iWeb to publish them. 
    What's the answer?
    Thanks 

    Many thanks to  responded to my question and sorry not to get back sooner.
    Yes, I discovered by this unfortunate experience that the names of photos are a serious issue if the site is to ever go to an FTP server.  Apple should discuss this carefully in their "manual".
    One more question:  I uploaded the website to a folder on my desktop. When I open it, unlike the photos in iWeb, there are folders for each page which have all the photos in them. I went through each folder and changed the names to be FTP compatible. I'm using iWeb SEO Tool which allows one to upload from this local folder to an FTP server but having trouble.
    Is this because there is an imbedment in iWeb that uses the old photo names to link to the actual photos and it can't find them because of the name changes?
    Thanks again for your help ...
    Phil McP

  • How to find out list of users and their access on Sharepoint

    Hello Everyone
    How can i find out list of users and what access they have on SharePoint site? I want to create table with list of the users and their access?
    Thanks

    you can get the report using below powershell scripts. first one gives list of users in a site collection level.
    The second link generates the permissions reports for each user.
    http://techtrainingnotes.blogspot.com/2010/12/sharepoint-powershell-script-to-list.html
    https://sp2010userperm.codeplex.com/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Developers I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    mule13470 
    Apr 3, 2014 11:12 AM 
    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.
    Applescript Editor, Mac OS X (10.6.8) 
    I have this question too (0) 
    Reply
    Categories: Using OS X MavericksTags: mac, help, finder, excel, applescript_editor
    Level 1 (0 points)
    mule13470
    Re: I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsbApr 3, 2014 11:19 AM (in response to mule13470) 
    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • Why does long list of files and subfolders scroll to top of finder window when a folder midway or down the list is opened?

    I am not sure how long ago this first occured, but when I upgraded to OS 10.8, I was hoping this would correct itself.  Now I am not sure if it is a bug or just the way Finder works.  When I have a Finder window with many files and folders, and I open a folder > midway through the list while previous files and/or folders have already scroll off the top of the window, the window scrolls up to the beginning of the list and I need to scoll back down to wee what is in the folder.
    I thought the finder window stayed steady and the folder openned revealing its contents without the finder window scrolling.  The only work around I have found for this is to always double-click a folder open, so it is the new Finder window.
    Problem or not?
    Thanks,
    Ray

      About the only thing I can say is to keep going to Verizon, or calling customer service to get them to look at the issues. I talked to 1 rep that told me to dial either 4# symbols, or 4* symbols (Can't remember which it was) after I got the VM message but did not have the phone ring, so it would mark my account record and they could search and troubleshoot the issue.
      As far as your upgrade, I think you have done the right thing so far, and that is signing up on this forum, that way you can look at the different phone forums and see what issues that people are having. Talking to people that have the phone is a great way to find out what the issues are. Verizon Sales reps will only sell you the latest and greatest, or if there is something that they are being told to push to get out of stock.
      Going with an iPhone is ok, just make sure it is correct for you, because like you said earlier, once it is done, it is done and you are stuck with it for 2 years. I had a friend who made a knee-jerk reaction to a bad phone, and did the same thing. They regretted it after 6 months. I am not saying the iPhone will be bad for you, just make sure you do your homework.

  • How to erase an app from de Launchpad if I already erased the files and tried to move it to the trash?

    How to erase an app from de Launchpad if I already erased the files and tried to move it to the trash?

    Erased what files? You say "tried" to move it to the trash... I assume that means that you were not successful?
    Removing an app from LaunchPad requires deleting the app. In general, if you're trying to delete an app that was installed from the App Store, simply open the LaunchPad, click and hold on the app icon in the LaunchPad until all the icons start "wiggling," and then click the 'X' at the top left corner of the app's icon. If the app was not installed from the App Store, you need to use whatever uninstaller was provided by the developer of that app.

  • Need Help ASAP  my State tax form is in a PDF file and the attachment in my email says Please wait

    Need Help ASAP  my State tax form is in a PDF file and the attachment in my email says Please wait...
    I tried downloading updates like it said to but it still will not display the document.  How do I print the PDF file ASAP

    Can you give us a LOT more info?
    What email client? What version of Reader (I can only assume you even have Reader at this point)?
    Please wait? I'm sure it says more than that, right?
    Have you tried simply saving the PDF (it IS a PDF correct?) to your desktop and opening it from there?
    Did you get this form from the IRS or did it come from somewhere else? If the IRS again, what version of Reader?
    Help us help you.

  • Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

    Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

    Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

Maybe you are looking for

  • How do I use 2 iPhones with one computer (iTunes)

    My wife & I each have an iPhone. Everytime I sync we both end up with the same songs, apps, etc. Is there a way that we can use the same computer for syncing but have our own separate libraries on our phones?

  • [JS CS3/4] ScriptUI How to color a button ?

    Is it a way to get a colored button in the ScriptUI DOM ? I tried dlg.button1.graphics.backgroundColor = dlg.button1.graphics.newBrush(dlg.button1.graphics.BrushType.SOLID_COLOR,[0.7,0.7,0.7],1); But although the dialog is drawn, the button is not st

  • Is it possible to convert a FHD(full HD) recording to VGA quality?

    I have made a video for a history website. This has been done in Full HD.Upload is becoming a problem. I need to convert the recording to VGA format. Or max HD format. Any guidance if this can be done on iMovie.? Thanks for all help

  • 10.1.2 Plus options

    If I launch Plus and then create a workbook I can go to the View menu to turn on / off the Available Items Pane, Selected Items Pane, Status Bar, Title, Crosstab, Graph and Text Area. There are also options on the Edit menu such as Add Worksheet, Dup

  • FINAL CUT STUDIO 5.1 (Universal) compatibility with Mac os 10.6.4

    We have just purchased a brand-new Mac Pro running Mac OS 10.6.4 my question is this, are there any known incompatibilities with Final Cut Studio 5.1 (Universal) running on a Mac Pro with Mac os 10.6.4.