Make list of files

I want to create a finder plugin that will allow me to select a folder and make a text file of the contents -filenames only- without the path information. Preferably with save as and save where. I can do this successfully with the full path but not without. Any ideas?

I thought you might ask that
You need a two-step workflow. The first step is Get Selected Finder Items. The second step is Run AppleScript. Here's the script:
on run {input, parameters}
(* Your script goes here *)
if (count input) > 1 or (count input) < 1 then
display dialog "One item only!"
else
tell application "Finder"
if kind of item 1 of input is "folder" then
my list_folder(item 1 of input)
else
display dialog "I can only list folders"
end if
end tell
end if
return input
end run
on listfolder(targetfolder)
set {olddelims, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
set target_file to (choose file name with prompt "Choose a name and location for the list:")
tell application "Finder"
set name_list to name of every file of target_folder
set folder_name to name of target_folder
end tell
set name_list to name_list as string
set targetfilecontents to (open for access target_file with write permission)
try
write "Contents of folder " & folder_name & ":" & return & name_list to targetfilecontents
on error
close access targetfilecontents
end try
try
close access targetfilecontents
end try
set AppleScript's text item delimiters to olddelims
end list_folder
Save the workflow as a Finder plug-in, ctrl-click on a folder and see how it goes.
Cheers,
H

Similar Messages

  • Unix command to make list of file name

    Hi Gurus,
    I have seen post how to process multiple file from johngoodwin.blogspot.com.
    But what is the equlivalent command in unix to list all file names.
    I want one text file will contain all text file name and another text file will contain all csv filenames.
    Need some suggestion.Please help.
    Thanks in advance.

    Hi please follow below steps.
    vi yourfilename.sh
    then in edit mode put your command
    then save it by pressing esc : q (escape colon q)
    Now your file will be there. just run that script file in OS Command.But that file should be accessible or else give the full path for that script file.
    Thanks

  • What is the list of file prefixes that make a file appear first in the finder?

    Hi!
    I was just curious :
    What is the list of file prefixes that make a file appear first in the finder?
    For example, files and folders whose names start with "A" will appear before files whose names start with "B",
    but what about a list of characters for files and folders before the letter "A"?
    I'm doing some file organisation, and I need certain things to appear at the top of the list.
    I have noticed that the character-prefixes "0" and "(" seem to make things appear before "A"
    I would like a complete list if there is one available.
    Thank you!

    Pretty much any number or a space character. Punctuation does too, in theory, but I'd advise to limit it to hyphens and underscores. Periods are OK in the middle of file names but you won't be able to start a file name with one at the Finder level since that would actually hide the file.
    Matt

  • When you scroll to the bottom of the list of files in Finder, the left to right scrollbar doesn't let you click the last file and it covers the file for a while until it disappears. Is this a bug? How do I not make that happen?

    When you scroll to the bottom of the list of files in Finder, the left to right scrollbar doesn't let you click the last file and it covers the file for a while until it disappears. Is this a bug? How do I not make that happen?

    An odd workaround: click "Always" in System Preferences/General/Show scroll bars. The scroll bars will always show, but they won't cover your last file.
    See this other post: https://discussions.apple.com/message/20572471#20572471

  • How to make a hierarchical list of file/folders like in the Finder

    Hi,
    I have a hard drive that I'm going to use as a safety backup. I've filled it with files and folders and am going to store it off site. I'd like to retain a list of what I've got on there, for reference.
    I can make a complete list of what's on there, with UNIX 'ls -R', but it's huge and you can't encapsulate the folders, it just lists everything. I need a document that reproduces the list of files and folders in the same way that the finder does. Is there any program that does that?
    Thanks
    Bob

    I've seen third-party backup utilities that provide that sort of catalogue interface, but I can't name any off hand.
    Yep, I even used to have one, way back in OS 7 thru 8.6 on my 8600. I think it was something from Iomega, they used to give you several free tools, and I believe a catalogue maker was one of them. I think it broke with some version of OS 9, and I got a shareware program called DiskTracker. Both did exactly what is wanted: they would catalog any sort of disk, be it drive, removable media (I had a bunch of Syquest EZDrive cartrides), even CDs. You would open the file in the program, and navigate just like in the Finder. Don't remember just how much information was preserved about files.
    Try going to VersionTracker, and do a search on disk inventory or catalog software, I'm sure there are still such things around, though I doubt they would be free.
    Francine
    Francine
    Schwieder

  • How Can I Make a Text File that Lists Files in a Finder Folder?

    I would like to email lists of files in my various Finder folders. I have Mac OS X (10.4.6). Finder works nicely, but I cannot figure out how to save a list of file names. Can I get advice? Thank you.

    I'd like to thank "roam" for the link http://www.searchwaresolutions.com which opened a site for "printwindow" for Mac OS. Wow!! That was easy! It's a free download for the standard product which luckily worked for me. After downloading PrintWindow, and putting it in my Applications and reading PDF instructions, I opened PrintWindow and clicked "File". Then I chose "Print Folder Listing", clicked that and see "Print Listing" of all my Mac's folders. Then, I selected the folder for which I wanted the file names listed on paper. Then it opens a Print Options menu. I clicked Print. Then, a "Page Setup" menu appears. I clicked "OK". Then a "Print" menu appears. On the "Print" menu, there is a PDF options menu!! On that, there is a "Save as PDF"!! I clicked "Save as PDF" and then there is a small "Save" menu where I typed a new file name and the folder in which I wanted the listing saved. It worked! Thank you.

  • After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  WRA

    After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle to make room for other audiobooks?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  These books, incidentally do not appear in the ITunes screen.  WRA

    Select the iPod shuffle in the iTunes sidebar (under DEVICES).  If this is a current 4th (or 3rd) gen iPod shuffle, you should be able to see the contents of the shuffle by type, intented under the shuffle's name (still in the sidebar).  Select Music or Audiobooks (not sure where those items from the library will be listed).  The items will be listed to the right, for each category.  Find the items, select, and delete.
    It's on page 20 of the manual
    http://manuals.info.apple.com/en_US/iPod_shuffle_4thgen_User_Guide.pdf
    NOTE:  If this is an 1st or 2nd gen iPod shuffle, select the iPod shuffle in the iTunes sidebar (under DEVICES).  Over to the right, go to the Contents tab, where the items are listed.  Select and delete them from this list.
    I find it more convenient to make a playlist in iTunes with things I want to put on the shuffle.  I then set up automatic syncing (or use autofill) to have iTunes load the shuffle from that playlist, automatically.

  • List of file renditions with CIS API

    Can anyone tell me how to get a list of file renditions with their related info (file type, file size, etc) through the CIS API? This would be similar to the web function
    http://localhost/idc/idcplg?IdcService=RENDITION_INFO&dID=599&dDocName=EDAM000231
    for example. I cannot find anything in the API that allows me to look up the renditions.

    Dear Kirby, Thank you so much for your reply.
    I'm familiar with Metadata. I've worked with Canto Cumulus and Filemaker.
    I guess a more important question - where is the Faces data stored?
    I'm looking to export a text version by file name, such as in a spreadsheet. Something like this
    File Name     PhotoFile_01.jpg     PhotoFile_01.jpg     PhotoFile_03.jpg
    Faces ID'd    Nina Totenburg        Carl Kasel               Tom Ashbrook     
    Faces ID'd    Carl Kasel                Peter Sagel            
    Faces ID'd    Terri Gross               Terri Gross              Nina Totenburg
    Faces ID'd     Renee Montaigne    Tom Ashbrook
    OR
    File Name                    Face 1               Face 2          Face 3               Face 4
    PhotoFile_01.jpg         Bob Braun         Tina Fey        Andy Warhol
    PhotoFile_02.jpg         Leah Jones       Beyonce        Tina Turner      Dave Matthews
    PhotoFile_03.jpg         Lisa Liu            Geena Davis
    Anything that would identify the faces in a photo to a text file ....
    Yes I understand that most of the IOS software is supposed to make it easier for the new and less techie user. But if you are going to create all these versions and mini files for the photos, why not make them accessible to a power user. I'm not a coder, but I've been using macs for 25 of my 40 years.
    What gets me is that you go to the trouble of identifying all the Faces. What is Faces really supposed to help you with?
    I mean Facebook is better at face recognition than this. Don't go on a tangent - about this - just sayin'.
    Thanks for your time!
    Beth

  • How do i make a new file created appear in the Application Navigator?

    I am doing an extension to JDeveloper..How do i make the new file that the user has created to appear in the Application Navigator?
    What methods can i use?
    These are my codes...but it does not work still...
    File file = new File(dir ,fileName);
    file.createNewFile();
    FileWriter fw = new FileWriter(file, false );
    PrintWriter pw = new PrintWriter( fw, true );
    Workspace workspace = ctx.getWorkspace();
    java.net.URL projectURL = workspace.getActiveProjectURL();
    URL url = file.toURL();
    Node node = new Node(url);
    jpr.add(node, true);
    node.open();
    NavigatorManager.getWorkspaceNavigatorManager().openNavigator(ctx);
    ProjectNavigatorManager.getApplicationNavigatorManager().openNavigator(ctx);
    EditorManager.getEditorManager().openDefaultEditorInFrame(node.getURL());

    If it's an IMAP type account then you should get an Edit button at the top of the list of folders that you currently have on your email account. If it's a POP type account then you won't get the Edit button, and you are limited to your existing folders

  • List of file format (banking)

    Hi,
    To make an incoming payment with cheque i realize the followings steps:
    i open incoming payment window,i select business partner,i select invoices,i click on payment Means and in the cheque tab i select Contry ,the Bankname,however when i click on Branch or account a new windows named List of file format appears and is empty.
    my question is how to make the data appear in List of file format (Branch column and Account column)?
    Thanks

    Hi Avi........
           List of file formats is the window name which is coming while entering the bank details. But you should first define the complete bank set up which will be then display in this window at the time of incoming payment. You just define the banks in administrantion --> bank set up. its branch and account no......
    Regards,
    Rahul

  • Printing a list of files in a folder

    Is it possible to print a list of files in a folder?

    Thanks for all your work-arounds. Here's a comparison which might be useful for others:
    • Copying and pasting into a text file or word processor gave me a list of the titles;
    • Dragging onto a printer in the dock gave me title, size and date; a little difficult to read across the lines as they are spaced across the whole width of my A4 page;
    •Print Window (free version) gives a printout of the information in the window that you choose. The lines are quite widely spaced which makes it legible, but means it takes a lot of pages for a big folder;
    • Print Window Advanced ($20) allows you to out put as a file, so you can design a format that suits you. I use Excel a lot for these kinds of tasks so this suits me very well. You can also print our a format for cd covers which—useful for archiving.

  • Shrink the List of File Types in the Save As List

    How to I simplify the list of file types in the Save-As file type list? I use less than six file types. I have no need for most of these.
    It would be nice to have my top 5 and then the ability to go off-menu if needed for others.
    Thanks,
    Drew

    I was able to reduce the list of file types by changing some file extensions. In the following folder
    C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\File Formats
    I inserted a tilda (~) into the file extension for these files:
    Cineon.~8bi
    Dicom.~8bi
    JPEG2000.~8bi
    PCX.~8bi
    Pixar.~8bi
    Radiance.~8bi
    U3D.~8bi
    Adobe Photoshop CC has "File Formats" in 4 different places! Two each for the x86 and 64 bit versions.
    Since I don't use the x86 version very much, there was no great desire to mess with those two folders.
    I'd would also like to get rid of
    JPEG Stereo (*.JPS)
    Multi-Picture Format (*.MPO)
    Photoshop Raw (*.RAW)
    Portable Bit Map (*.PBM, *.PGM, *.PPM...)
    I see "Camera Raw.8bi" in
    C:\Program Files\Common Files\Adobe\Plug-Ins\CC\File Formats
    but renaming it didn't help.
    For others who want to do this, and are concerned, just make a note of the file extensions you are changing so you know how to return to the way things were if you ever need to save as a file type that has been removed from your list.
    You must relaunch Photoshop after making any file name changes to see the effects.
    Any ideas on how to get rid of 4 more file types from my list?

  • How do i get a list of file names in to a new folder?

    Hi,
    Does anyone know if there is a way of having a list of  image file names, searching for the images then putting them into a new folder?  I'm guessing it can probably be done through mac scripting but I know nothing about scripting and genreally not great with technogy so ideally need step by step instructions!!
    If anyone can help I would really appreciate it!!
    Ruth

    Without details about your workflow and folder set up, I can only give you a generic script, but this should at least get us started.  test it and see what needs to be tweaked.
    -- set paths to source and destination folders
    set imageSourcePath to POSIX path of (choose folder with prompt "Choose a source folder.")
    set destinationFolder to POSIX file POSIX path of (choose folder with prompt "Choose a destination folder.")
    -- get file names from text file: assumes one name per line.
    set fileNameTextFile to (choose file with prompt "Choose a file list text file." of type "public.plain-text")
    set fileNames to paragraphs of (read fileNameTextFile)
    repeat with thisFileName in fileNames
      -- replace each file name with an alias to that image file
              set contents of thisFileName to POSIX file (imageSourcePath & thisFileName)
    end repeat
    tell application "Finder"
      -- using 'duplicate' because I assume you want to make copies rather than move files
      duplicate fileNames to destinationFolder
    end tell

  • Can Bridge CC create a list of files in .txt format ?

    hi all,
    i'd like to know if i can create a list of files in .txt format using Bridge CC
    It could be a good way to verify the integrity of an external database.
    thank you all
    rafa

    hi mark,
    this is my situation:
    i shoot a great number of items everyday.
    So i have a db in excel format with the name of item, the shooting date and other informations about the files.
    now, with my batch file, i create a list of file in specific folders (to work, worked, deliverde etc)
    in this way i can comparate all files and i can update tha state of working in db file
    if bridge could create a list, i can make this comparation faster.
    this is the why of my question.
    can you help me to create the opportune script in bridge?
    sorry for my english
    rafa

  • What do I do with this error message: To use this library, make sure its file permissions are set correctly.

    So I cannot even access the application. It was working fine yesterday and today I get this error message:
    To use this library, make sure its file permissions are set correctly.
    I have changed nothing. All the pictures are there on the computer. Help?!

    Reboot.  Close any programs which open at start-up.  Run Disk Utility (you can type this in the Spotlight search field at the right end of your Menubar).
    In Disk Utility, select your drive from the list on the left, and click "Repair Disk Permissions".  This will take a few minutes, but should be less than ten.
    Reboot.
    Try to open your Library in Aperture.  What happens?

Maybe you are looking for