Getting the Finder to display your list of files

Hi all,
The program I am contemplating would create a list of files that may be in several different folders. I'd like to present that list of files to the user in a format similar to the Finder's search results, letting the user move, copy or delete the files. Is there a way to tell the finder to display a list of files? I'd rather not re-invent the wheel by making a Finder-like interface since the Finder does what I want. I just need to tell it the set of files I want it to act on. I could make a temporary folder and fill it with aliases, but that seems messy. The Finder search results window is much cleaner and has the nifty expanding folder path graphic at the bottom. I've dug around some for an Applescript means of doing this and for Finder Plug-ins.
If that's possible, is there a way to get the Finder to tell me which file is selected in any particular Finder window?
Thanks,

<%
     File fParent=new File(getServletContext().getRealPath("/~tolmank/hsql"));
     File[] myDBFiles=fParent.listFiles();
     String name="";
     String fSize="";
     String lastM="";
     %>
<table width="50%" border="0">
<tr bordercolor="#000000" bgcolor="#CCCCCC">
<td width="36%" align="center">FILE</td>
<td width="30%" align="center">SIZE(kb)</td>
<td width="34%" align="center">LAST MODIFIED </td>
</tr>
<%
     for(int i=0;i<myDBFiles.length;i++){
          name=myDBFiles.getName();
          fSize=(myDBFiles[i].length()/1024)+"kb";
          SimpleDateFormat sdf=new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z" );
          Date lastD=new Date(myDBFiles[i].lastModified());
          lastM= sdf.format(lastD);
%>
          <tr>
               <td align="center"><%=name%></td>
               <td align="center"><%=fSize%></td>
               <td align="center"><%=lastM%></td>
          </tr>
<%
%>
</table>

Similar Messages

  • Get the ipad to display my photos in file name sequence

    How can I get the ipad to display my photos in file name sequence instead of by time/date stamp? I want to display them in a particular sequence controlled by the filename I gave them. 

    Hey Tex,
    Good idea.  I've found a question that indicates that the ipad sorts by name (https://discussions.apple.com/message/9116248#9116248).  Mine are all sorted by date/time.  How did they do that?
    The app you suggested looks promising, but it sounds like i have to manually rearrange my pictures, and since i have hundreds in each folder, this would be tedious.  Is there an app that will allow me to display them by filename w/o me having to rearrange them myself??
    Thanks.
    WSC

  • Sports Team Editor: How do I get the players to display in the sports theme?

    How do I get the players to display in the sports theme video? I entered the team and players using the sports team editor. Then clicked done and update. But when I play the video only the first players profile shows up. I have the rest of the video done, this is the one remaining mystery. Thank you.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • HT5219 How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    You may need to set the slider at the upper-right corner of the Control window to something other than the extreme left-most position:
    Hope this helps.

  • How can I get the cursor's position in a opened file and display a menu?

    Hello,
    I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
    More clearly-
    1. First I would save some words or sentences in a file(aa.txt).
    2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
    3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
    My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
    My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
    Would you please help me on this regard.
    Thanks

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • I am trying to download Firefox on my laptop which runs Vista. I am getting the following error message: Your Firefox profile can't be loaded, it may be missing or innaccessible." Please help.

    I am trying to download Firefox on my laptop which runs Vista. I am getting the following error message: Your Firefox profile can't be loaded, it may be missing or innaccessible." Please help.

    See:
    * http://kb.mozillazine.org/Recovering_a_missing_profile
    * http://kb.mozillazine.org/Profile_in_use
    * https://support.mozilla.com/kb/Firefox+is+already+running+but+is+not+responding

  • I have run disk utility- the drive is corrupted- I get the error message restart your computer holing down the Cmd

    I have now tried every variant of key compbinations but I still get the grey lock icon with a box which won't accept my password.
    When re-running disc utility all I get is the same error message

    I ran the Disk Utility and got a message that it can't repair the disk. This happened after I did a restart Command and R. After trying the repair cycle I got a message "Disk Utility can't repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed - up files" I found myself stuck because I couldn't shut down the Disk Utility. Out of frustration and patience I turned the I-Mac off by pressing the start key, thinking it would restart my computer. I feel like a fool now! I started the computer up and all I got was a grey screen with a flashing file with a question mark inside the file icon which is blinking off and on. I tried attaching my Seagate hard drive with no luck. What can I do? Thank You!

  • I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem?

    I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem? I starting to regret that I switched to iPhone...

    Usually if you have some kind of hardware failure there is some beeping during POST or most motherboards now have LED indicators to produce and error message based on the type of failure
    So if its bad memory, not place properly, mismatched, processor not inserted properly, mismatched voltage or voltage connector not present etc it beeps or generates the error id.
    Power supplies can be tested for failure. There are some walk throughs for testing just them with a switch, paperclip or a jumper (I'd suggest not doing this if you are not familiar with the dangers of electricity).
    Memory can be tested with memory diagnostics programs like Memtest+
    Processors can overheat if the proper precautions have not been taken usually you will get a POST beep or error code for that.
    If the motherboard has no response then do the basics first:
    Check power connectors and power supply. Once you determine that is not the case move on to other items like graphics cards in all the way or memory.

  • HT3951 how do you stop a download of a movie if you dont have enough space and how do you get the money refunded to your account

    how do you stop a download of a movie if you dont have enough space and how do you get the money refunded to your account

    All sales are final the moment you click buy.
    Make space and download it

  • On opening gogle I get the message:"WARNING! Your Flash Player may be out of date. Please update to continue" - on clicking ok I am diverted to Flash Player Pro download site?? Is this a Adobe product? And why even though i have the latest flash player ve

    On opening google I get the message:"WARNING! Your Flash Player may be out of date. Please update to continue" - on clicking ok I am diverted to Flash Player Pro download site?? Is this a Adobe product? And why even though i have the latest flash player version I repeatedly get the message?

    This is not a message that Adobe is providing, and I recommend that you not click on the link. It sounds as though you might have malware on your computer.
    For more information, see: http://malwaretips.com/blogs/warning-your-flash-player-may-be-out-of-date-virus/ or http://wasconet.com/how-to-remove-warning-your-flash-player-may-be-out-of-date/

  • I have a MacBook Pro version 10.7.5 Every time I try to open iphoto I get the warning: "To open your library with this version of iPhoto, it first needs to be prepared. You have opened this photo library with a newer version of iPhoto." How do I do this?

    I have a MacBook Pro version 10.7.5 Every time I try to open iphoto I get the warning: "To open your library with this version of iPhoto, it first needs to be prepared. You have opened this photo library with a newer version of iPhoto." How do I do this? I recently bought aperature, and it has been since then that I get this warning.
    Thank you!

    No I have not tried those things. I don't even know what that means I suppose I have the newest version of aperature; I just bought it 4 days ago.

  • After i reading bytes ,how do i get the image to display?

    After i reading bytes ,how do i get the image to display?
    i m lost after tis step:
    Image img=Toolkit.getDefaultToolkit().createImage(data1);

    You can create and use a Canvas. (and define the Paint method)
    Canvas c = new Canvas(){
            public void paint(Graphics g){
                g.drawImage(img,0,0,this);
    frame.add(c);

  • How do I get the date to display on ipad lock screen?

    How do I get the date to display on ipad lock screen?

    The day and date should display on the lock screen, e.g., "Wednesday, March 19"
    What are you seeing?

  • HT4561 After updating to 10.6.3, I installed the 10.6.8 update just to start experiencing these font issues. HELP! How do I get the fonts to display correctly in my browsers especially (Chrome & Safari)

    After updating to 10.6.3, I installed the 10.6.8 update just to start experiencing these font issues. HELP! How do I get the fonts to display correctly in my browsers especially (Chrome & Safari)

    What I ended up having to do was open up the Font book & remove duplicates. I knew it was Arial that was causing the problem, so I deleted the duplicate of that font. Inadvertantly I deleted all the Arial regular font, so I had to reinstall one copy. That was the solution. Thanks!

  • How do you get the album pictures displayed with the right songs on my iphone 5

    how do you get the album pictures displayed with the right songs on my i phone 5?

    I have the same problem but i only have iphone 4s its only jsut started in the last 2 weeks or so

Maybe you are looking for