Matching files in 2 folders

I have two folders that should have the same number of files after performing a Save As into a second folder action. The first folder has 448 large tiffs, the other has 447 low-res jpegs. The file names are the same apart from the extension.
Is there a script to run that can find the rogue tiff in folder number one that wasn't saved as a jpeg into folder two? Surely this is a simple 'folder match' function?
If this is a job for Automator, or Spotlight I will leave this post in their respective forums.
Thanks.
Richard.

Here's a quick solution. The following script strictly considers everything to the left of the last period in each filename. Select the folder with more items in the first dialog, the folder with less items in the second. The results of the comparison are written to the script editor's result pane.
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">return missingitems(stripext(list folder (choose folder)), strip_ext(list folder (choose folder)))
to missingitems(lista, list_b)
set missing_items to {}
repeat with an_item in list_a
if an_item is not in list_b then set end of missing_items to an_item's contents
end repeat
return missing_items
end missing_items
to stripext(afolder)
set z to {}
repeat with x in a_folder
set x to x's contents
set y to offset of "." in (reverse of x's characters as Unicode text)
if y > 0 then
tell x to set end of z to text 1 thru (-y - 1)
else
set end of z to x
end if
end repeat
return z
end strip_ext</pre>

Similar Messages

  • I can't move music files to different folders in my itunes library

    First, I have not created files in my itunes library for a while, and I could swear it was a lot easier years ago! ALL that I want to do is add the new music I've purchased or recently added to a folder that already exists in the playlist.
    1) All my recently added songs have been purchased through my iphone, I'd like to move them to a folder.
    2) When I connect my phone to my computer, I see the tab to click on my phone. I do, and it opens the content of Music in my iphone.
    3) In this content, there are folders to the left listed, beginning with Music, Movies, Purchased, Recently Added, Recently Played, "My Name" Favorites, another specific folder I labeled to seperate music, and then another Purchased folder.
    4) I WANT TO MOVE or copy my newly purchased music file to these folders so when I play them on my phone, I can SIMPLY choose the file that is asscoiated with my Favorites or other choice.
    Why Is This So Difficult to do! Or is it that easy and I'm overlooking the past hour I've spent trying!
    Second part of my aggravation, why can i NOT sort the files in a music folder by song name anymore?! We used to be able to click at the top of the listing, Name, Aritist, Albulm etc. to sort them alphabetically and make a search easier depending on , but now I can no longer do this.

    This happened to me too but I only tried one song and then gave up. I thought it was a fairly popular song.

  • Any way to keep files updates within folders?

    Hey guys.. I am experimenting with iPhoto, and had a few quick questions.
    I just imported a folder, containing the folder structure I use to organize a specific set of pics on my hard drive. They're reference/inspiration shots for my own photography. I was stoked to discover that each folder became an "event".
    However my library is "managed", so while they weren't deleted from their location, the shots I am looking at inside of iPhoto are now contained inside the iPhoto Library file. Is that correct?
    As I'm always adding files to those folders, and occasionally moving them around manually, my main question I have is concerning whether there's any way to keep those "events" up to date with what files are in the actual folders?
    I'm not opposed to having a 2nd REFERENCED library File for this sole purpose.
    In a Managed Library:
    Is there any way to add a file to a folder manually using the finder, and have iPhoto recognize that it contains a new file and update itself when I view that "event"? Or can I update it manually at least? Like a "refresh".
    In a Referenced Library:
    - Can I keep the "event" up to date with changes to the referenced folder?
    In Either case:
    - If I delete/move a file from a folder via the finder, will the "event" be corrupted, or "missing" a file?
    - If I delete/move a file a file from an event via iPhoto, will the file be deleted in reality, or just the reference/management of it?
    - If I find that some of my iPhoto "events" could be combined into one for ease of navigation:
    a) Can I do this? How?&#8232;b) Will that change the folder structure of my original ile?
    Finally,
    - If I go with 2 libraries (Managed for personal shots, and Referenced for other peoples shots), how do I switch between libraries? (I'd want the Managed/Personal shots to open upon launch by default.)
    Cheers! Thanks in advance!
    Ben

    You're not quite getting what iPhoto is, what a managed and referenced Libraries are.
    iPhoto is a Photo Manager. It replaces the Finder for anything to do with your Photos. It's your go-to app whenever you want to add, delete, view, manage or whatever your photos.
    A Managed Library means that iPhoto manages the actual files. They are copied to the Library package on import.
    A Referenced Library means that you manage the files. Then import them. After that you never access the files again. It's all done via iPhoto.
    So, what you're trying to do - syncing a folder system with an iPhoto Library - is unnecessarily complex. Either use the Finder for your Photo or use iPhoto (or similar apps, like Aperture, Lightroom etc)
    However my library is "managed", so while they weren't deleted from their location, the shots I am looking at inside of iPhoto are now contained inside the iPhoto Library file. Is that correct?
    Correct.
    As I'm always adding files to those folders, and occasionally moving them around manually, my main question I have is concerning whether there's any way to keep those "events" up to date with what files are in the actual folders?
    You can do this with Automator, Apple Script or with an app like Hazel: http://www.noodlesoft.com/hazel.php
    But... why would you? iPhoto is a photo manager, why are you using the Finder for the job as well. Rather than update those folders, why not just import the updates to iPhoto?
    I'm not opposed to having a 2nd REFERENCED library File for this sole purpose.
    It would make no difference. All it does is make more work for exactly zero benefit.
    In a Referenced Library:
    - Can I keep the "event" up to date with changes to the referenced folder?
    See above. But remember that every new import means at least one new event, so you'll need to consolidate events after the import.
    In Either case:
    - If I delete/move a file from a folder via the finder, will the "event" be corrupted, or "missing" a file?
    Yes. In a Managed Library you never delete anything via the Finder. That's all done from within the iPhoto Window. (See what I mean about it replacing the Finder?). In a Referenced Library you need to delete the images from iPhoto first. Then you delete them from the folder structure. (See? More work/no benefit)
    - If I delete/move a file a file from an event via iPhoto, will the file be deleted in reality, or just the reference/management of it?
    In a Managed LIbrary the shot gets moved to the iPhoto trash. Empty that and it's moved to the system trash. Empty that and it's gone. For Referenced see above.
    - If I find that some of my iPhoto "events" could be combined into one for ease of navigation:
    a) Can I do this? How?&#8232;b) Will that change the folder structure of my original ile?
    You can consolidate Events simply by dragging one to another. You can move photos between event susing Flagging and so on. No, the files on the disk are never moved at all regardless.
    Again, the location of the files on the disk makes no difference as you never access them anyway.
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491
    If I go with 2 libraries (Managed for personal shots, and Referenced for other peoples shots), how do I switch between libraries? (I'd want the Managed/Personal shots to open upon launch by default.)
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    Here's a post that describes why Referenced Libraries are a bad idea
    https://discussions.apple.com/thread/3062728?tstart=0
    A General comment:
    Deep breath. This is simple and you're making it very complex.
    Use one managed Library. You can easily separate your personal work from these inspirational photos with a keyword. Events are a very limited form of organisation. iPhoto gets its real power from Albums and keyword. For instance:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • Error while uploading multipile files to C folders in the same session

    Hi,
    I am uploading a file to my C folders. For the very first time I was able to upload my  file to C folders
    But from thenext time I am getting the following error
    Object <i>4B54244D53F400EAE10080000A140013</i> of type <i>Folder</i> no longer exists.
    If I refresh my Webdynpro application I was again able to upload the documents
    Could any one please help me what might be the issue.
    Regards

    Thank You .....For the Ans.
    But I guess It is the Prob with Auth

  • When smb sharing, files turn into folders

    I use Mountain Lion on my 2012 Air. I connect to a hard drive on my wireless router using the SMB protocol. Random files turn into folders.
    I don't know if this is a problem with the OS X SMB protocol or my wireless router, which is a Linksys e3500.
    Has anyone encountered this problem?

    I use Mountain Lion on my 2012 Air. I connect to a hard drive on my wireless router using the SMB protocol. Random files turn into folders.
    I don't know if this is a problem with the OS X SMB protocol or my wireless router, which is a Linksys e3500.
    Has anyone encountered this problem?

  • Picking files from multiple folders based on name send to destination folde

    Hi,
       I want to pick multiple files from multiple folders with one root folder. Based on file name I want to send it to diffirent folders. No need to go for message mapping. Can anyone suggest me.
    Thanks & Regards,
    Prasad Kotla.

    Hi Prasad,
    to pick the files from multiple source directory, can use "Advance Selection for Source File" in Sender CC.
    If you wand to develop a Scenario without Message mapping, develop a scenario as "Sender as Virtual receiver"
    This option is available in Sender agreement, just give the dummy name for Msg Interface and Namespace, Name defined should be same in Rec Agreement.
    Develop only: Sende CC, Receiver CC, SA, RA
    No need to develop ID and RD as no mapping is involved.
    If u want to send the files to different folders of receiver side, just develop the adapter module which changes the directory based on the sender filename.
    If the sender and receiver directory is same than check the "adapter specific Msg Attribute"  and "directory" checkbox in both the sender and receiver CC. in this case no need to develop Custom module for changing the directory. files will be automatically placed in the path they were picked from  sendor directory
    appreciate if useful
    regards,
    chandra shekhar

  • How do I find the files in all folders named Camera 1?

    Is there a way to search and find all of the video files in a certaint folder name? For example: I have many folders in different directories labled as Camera 1. I would like to be able to search for the files in all folders named Camera 1, but exclude any similar file types that might exist in other folders such as Camera 2, Camera 3, etc... Is there any way to do this?

    You should be able to sort by file name, file size, or last modified date by clicking the column heading. If the column headings are gone or you do not have all those details, there might be a way to reset your FireFTP settings but I've never researched it.

  • Jsp code (js code) to display(tree) the files and sub folders in a folder

    Hi all
    plz can any one send me the source in jsp or js to display in tree structure for files and sub folders in a folder.

    There are dozens of Javascript tree widgets available on the Internet. Some are free. Some are good. Google will find them for you.
    (The only relevance of JSP to your question is that yes, you can generate HTML that uses one of those Javascript tree widgets.)

  • Unable to add XML files to genericObjects Folders using Webdav - cFolders

    Hi All
    I am not able to add XML files to genericObjects Folders using Webdav in cFolders
    What could be the reason.. When I try to copy, it says "cant read from source file"
    Regards,
    Aby

    Yes.. I downloaded the ECN.XML file from se80, edited and then used "Uplload and replace"..
    Also I did the same thing to add some more vocabulary in the cfx text XML, so that it would reflect correctly to map with Additional attributes in the PDX profile.
    Regards,
    Aby

  • I have a number of duplicate files in various folders on my Air - is there  way to find them and delete them?

    Mac Air 1.7 GHz i5  4GB Mavericks 10.9.5
    I have a number of duplicate files in various folders on my hard drive.  Is there an easy way to find them and delete the dups?
    Thanks

    EasyFind – Spotlight Replacement

  • How to move downloaded files from download folder to other relevant folder or how to download files in relevant folders other than download folder

    how to move downloaded files from download folder to other relevant folder or how to download files in relevant folders other than download folder

    Just drag the file from the Download folder to the folder of your choice in Finder. If you are using Safari you can designate a new default download destination in Safari>Preferences>General tab, 'Save Downloads to...'. Other browsers should have a similar option in their preferences.

  • How do I file email into folders?

    Hi,
    How do I create and file emails into folders?
    I've created a "Smart Mailbox" (whatever that is, lol) and tried to drag emails into that folder but it doesn't work. When I click on the email and want to move it, nothing shows up to move it to: including the smart mailbox that was created.
    Any suggestions?
    Thanks,
    Lee

    j.v. wrote:
    it is creating an alias in that smart mailbox
    I have heard this statement before, but it is not true. A message in a Smart Mailbox (or a file in a Smart Folder in the Finder) is not an alias. It is simply the same original in a different context.
    An alias, in Mac OS terminology, is a separate and distinct file from the original. It is a file whose property is that, when opened, it redirects and opens a different file (the "original"). But the alias itself is a distinct file. It can be renamed, moved, deleted, labeled, etc., without having any effect on the original. None of this is true of the "contents" of a Smart Mailbox/Folder. If you delete a message in a Smart Mailbox, you are deleting the original message. If you drag the message to a (non-Smart) Mailbox, you are moving the original. Some people seem to be confused that a message (or file) can appear to be in more than one place at a time. It is, nevertheless, the exact same message, and misunderstanding this point could have unfortunate consequences.

  • Indexing files in multiple folders

    Dear all,
    I would like to ask is it possible to index files in multiple folders. To my understanding, Oracle Text seems can only create an index for files in a single folder. if this is true , then i think it will restrict us to search for files that have same file name. So I would like to ask if there are any work around to solve this problem.
    Thanks in advance,
    Edward

    Yes you can index files in multiple folders. Either you enter multiple paths in the path variable seperated by colon (:) under UNIX or semicolon(;) under NT.
    The other possibility is to leave the path variable blank but then the column you build the index on needs to store the whole file and pathname.
    Hope this helps
    Joerg

  • I cannot open various files in various folders using maverick?

    How can I open various files in various folders after upgrading to Mavericks?

    Now will you believe me ?

  • Deleting Files and (sub)folders - how to

    Hi,
    Easy question. Easy there a vbscript to delete all files and (sub)folders, empty or not. Important, here is that the parent folder must NOT be deleted, only it´s contents. (important: this folder is located on a mapped share \\servername\foldername\)
    please help

    Hi,
    ' Delete All Subfolders and Files in a Folder
    Const DeleteReadOnly = TRUE
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.DeleteFile("C:\FSO\*"), DeleteReadOnly
    objFSO.DeleteFolder("C:\FSO\*"),DeleteReadOnly
    Save the above code in test file with .vbs file extension. modify "C:\FSO" to your folder.
    Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for