Apple script to find all duplicate files

Is it possible to write an applescript to find all duplicate file names on my hard drive? My hd is almost full, and if I can delete duplicate files, it'll save me from having to buy another external drive.
Thanks,
George

Why would you have found 20GB of duplicate images?  iPhoto has built-in duplicate detection, it can remove any duplicates or prevent them from being imported altogether.  Did you disable this in iPhoto for some reason?  Or were you still using folders and subfolders to store your photos?
Just because two pictures have the exact same filename does NOT mean they are identical.  If this application you used simply compared their filenames, it's possible you actually lost all those photos and not just some duplicates.  ;(  Because many cameras reuse filenames after a certain point! 

Similar Messages

  • Apple script to find all image files on computer and put them into 1 folder

    Is there any way to do this with apple script? Thanks

    Hi glaurung,
    Doing this with vanilla AppleScript and the Finder would take too long. There might be a way to do this with unix commands, but probably the best way to this would be to use the built in find for your system. I wouldn't search the whole computer. Maybe just search somewhere in your Home folder. Use a criteria like all files with extension jpg, tiff, tif, etc.. Then you can just drag the found files into whatever folder you want. You need to be cautious because you wouldn't want to move all files. For instance, you wouldn't want to move all pictures in your iPhoto library, other apps, or the System.
    gl,

  • General searches do not find all applicable files

    all files meeting a search category in Finder do not show up in the results.  Even when I search for a known specific file by the exact name it does not show up when searching for it in Finder.  The same thing happens when I search in Adobe Bridge.  any ideas?

    some guides
    http://www.google.dk/search?source=ig&hl=da&rlz=1G1TSEH_ENDK367&q=osx+find+all+d uplicate+files+across+multiple+drives&oq=osx+find+all+duplicate+files+across+mul tiple+drives&aq=f&aqi=&aql=&gs_sm=e&gs_upl=753800l755205l0l755546l5l5l0l0l0l0l25 8l562l1.0.2l3l0

  • Script to open all PST files in a directory and open with Outlook.

    Hi!  I am looking for a script that opens all PST files in a directory, opens it in outlook, and writes to a log to see if it completed correctly.  I'm new to VBscript and just want to see how the script would be written.
    Thank you!!

    Thank you for all the input!  JRV, I went through the repository and couldn't find anything about importing into Outlook.  I will use it for future references and I appreciate you directing me there.
    Grant, I need to be able to locate all PST files within a directory, not point it to a specific pst.  I also need it written to a log file.  Here is what I have...Don't laugh, I'm very new...
    const ForAppending = 8
    set objTextFile = objFSO.OpenTextFile ("C:\Users\jimmy.nguyen\Desktop\Lucky.txt", ForAppending, True)
    set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    strCommand = "C:\Program Files (x86)\Microsoft Office\Office12\outlook.exe"
    Set objExecObject = objShell.Exec(strCommand)
    wscript.sleep 4000
    Set myOlApp = CreateObject("Outlook.Application")
    Set myNS = myolapp.GetNamespace("MAPI")
    myNS.AddStore "objfile.name"
    Sub ShowSubFolders(fFolder)
    Set objFolder = objFSO.GetFolder(fFolder.Path)
    Set colFiles = objFolder.Files
    For Each objFile in colFiles
    If UCase(objFSO.GetExtensionName(objFile.name)) = "pst" Then
    objFile.Name
    End If
    Next
    For Each Subfolder in fFolder.SubFolders
    ShowSubFolders(Subfolder)
    Next
    End Sub
    strResults = ShowSubFolders(fFolder)
    objTextFile.WriteLine(strResults)
    objTextFile.Close

  • Find all music files and move to one folder for all of family to access, find all music files and move to one folder for all of family to access

    I seem to have music files in various places on my laptop, on my husbands computer and our main imac.  What we want to do is put all music on imac so when each of us logs on we have the same files availabe in itunes, but we logon seperately so we can have different playlists and checked music. So here is what I want to do:
    Find all music files on each computer seperately and put everything in one folder one each computer, so three folders total to start...
    Move my husbands itunes library and my itunes library from each of our laptops to our main imac, making one huge itunes folder
    I want to store our music on an external hard drive, which I have, so I have a full library for backup purposes.
    I want all future music downloaded on any of our laptops to transfer to the main imac computer, again to keep one main library
    I want all video, apps, books, etc on each laptop to be available in one file on my main imac also so we can all use them
    So mainly I want to organize, organize, organize and put everything in one spot so things don't get all messed up and some items are only accessible to me some times and not my husband or vice versa.  We want to share everything we can so we don't have to pay twice. I have read many instuctions, but nothing seems to be helping me and was hoping someone could...
    Thanks, l

    I am totally running into the same issue as well. On top of that, when syncing to my iPhone, it took some of the tracks from my iphone and recopied them to the iTunes library, as new files, so now I have a ton of duplicates, and tons of tracks that can't find the iTunes folder, so they have the little "!" next to them.
    It would be really nice to have someone answer this question. I didn't think, moving my iTunes library to a bigger external hard drive would have caused all this madness

  • HT1451 i have and can find all duplicates in my library - after i find them is there a way to delete the other than one at a time

    i have and can find all duplicates in my library - after i find them is there a way to delete them (in mass) other than deleting one at a time?

    The only way they would all come over is if your wife had automatic downloads turned on in her store settings on the phone before she downloaded the apps. A popup for this option also comes up when you first sign into an apple id on the phone in the app store. If she didn't have that setting turned on, she'll have to download them one by one.
    She could also try to sync them over from a computer that has itunes on it

  • Script to find all mailboxes a user can access

    I am looking for a script to find all mailboxes to which one user has access to. I have used:
    get-mailbox -resultsize unlimited | get-folderpermission -user username > file.csv
    The problem with this is the amount of mailboxes, powershell returns:
    Sending data to a remote command failed with the following error message: The total data received from the remote clien
    t exceeded allowed maximum. Allowed maximum is 524288000. For more information, see the about_Remote_Troubleshooting
    The problem is the amount of data. Is there a way to do this by database, by servers, skimmed down, etc?
    Thanks

    Hi,
    The following command can list all mailboxes which the specific user Bob has full access permissions, please try it:
    Get-Mailbox -Database "Mailbox Database01" -ResultSize unlimited | Foreach {Get-MailboxPermission -Identity $_.Name -User Bob}
    Regards,
    Winnie Liang
    TechNet Community Support

  • HT204053 iCloud in a business. Do all the computers require the same apple ID to share all the files?? Can i have two apple accounts on one device?

    iCloud in a business.
    Do all the computers require the same apple ID to share all the files?? Can i have two apple accounts on one device

    Neither of those Apps allow you to (easily) add iWork documents created or edited on the device to your online storage, you need to be using a webDAV server to be able to do that. In fact pretty much all you can add from the iOS device is photos and video without resorting to convoluted workarounds, intermediate apps or emailing finished documents to yourself. You can on the other hand view most of the content of dropbox/sugarsync through those apps, which in a lot of circumstances is useful, but without it working in both directions these apps are far from an ideal solution.
    E.g from the sugarsync website
    Yes, this may not be of too much interest to the OP, I was only trying to clarify the situation with iCloud.com/iWork for you.
    However that being said, there may be areas of interest for Computer to Computer syncing, given the recent changes made to iCloud.com/iWork. I wouldn't suggest iCloud sharing for archived documents, but for perhaps up to a couple of dozen documents in progress, iCloud sharing is now quite viable. If there is any chance at all of these documents being accessed on an iOS device then iCloud would become a preferred option to dropbox or sugarsync.

  • Hi there, I have much files saved on pages ( ios ipad) , I just open it today and did not find .all the files !!!! Just 4!!! Taken in consider that I did not delete or making any wrong action. How I can return the lost files!!!! Help please

    Hi there, I have much files saved on pages ( ios ipad) , I just open it today and did not find .all the files !!!! Just 4!!! Taken in consider that I did not delete or making any wrong action. How I can return the lost files!!!! Help please
    its very important files!

    tis true
    I know, I always do that but I was in a rush to get somewhere and I was relying on my thousand dollar Mac to do some kind of recovery or something. I know Microsoft always keeps temporary files (I think Mac does too, part of me asking here in this forum was for someone to tell me where I can find those files) and when you go to open Office Works then it gives you the option of opening the last recent documents, saved or not saved.
    I usually copy paste into my emial just in case something goes wrong with the created document but I just didn't have the time to login and do all that My loss, you live and you learn, BUT still if ANYONE got any info on this, PLEASE DO CHIME IN *keeping the hope alive*

  • Need script to check for duplicate file names when copying a folder

    Hello,
    I am a new applescript user trying to write what I believe should be a simple script. I was planning on using the "add-new item alert" script as a template.
    Basically I have people copying folders of photos into a library folder, but I don't want the Finder to copy the photo if it already exists in the library. The images in the library are organized into subfolders.
    I need a script that will check all the file names in the new folder against all the file names in the library, and NOT add the new one if it already exists.
    If anyone can help it would be greatly appreciated,
    Thanks,
    C

    I have a script that "kind of" works. The only problem I've seen is that it gets confused when filenames contain characters that are fine in Macland but not good in Unixland. Forward slashes are a good example of this.
    In this case I have a folder in my home named "copytest" Inside copytest are two folders:
    Source (containing the images to be added)
    Dest (My existing library of images)
    It also assumes that the folder of images to be added contains no sub-folders. Hope this helps.
    tell application "Finder"
    set theSource to folder "source" of folder "copytest" of home
    set imagesToBeCopied to name of every file of theSource
    end tell
    repeat with theFile in imagesToBeCopied
    try
    if (do shell script "find -r ~/copytest/dest -name " & quoted form of (theFile as string)) is not equal to "" then
    --The file exists. Don't copy it
    else
    --the file doesn't already exist. Copy it.
    end if
    on error
    return "Failed while trying to check for existence of a file"
    end try
    end repeat

  • Apple Script For Opening External EML File With Apple Mail

    Hi folks,
    

 I am working with Apple Script for implementing numerous function related to Mail App.
    

I am using the following Apple Script lines for opening the mails which are in Mail app for each modes.
    

View Mode : open theMsg

    Reply View Mode : reply theMsg opening window yes

    Reply All Mode : reply theMsg opening window yes reply to all yes

    Forward Mode : forward theMsg opening window yes



    I want to know how we can open external eml file in different view modes (View, Reply, Reply All and Forward) using Apple Script or Apple Event programmatically with a similar mechanism available through script in Mail App.

    
Thanks in advance.

Regards
    
Nisar

    I'm not sure what you're doing here, but this isn't anything I recognize as compilable applescript. what is this 'mode' thing you're talking about.
    at any rate, if you have a loose emlx file sitting around somewhere you can simply open it in mail (use the 'open' command and the file specification for the emlx file) and work with it appropriately. if you're talking about an actual eml file (e.g. from Outlook Express) you'd have to GUI script Mail's 'import mailbox' command (the applescript handler for importing mail only works with Mail.app mailboxes)

  • Finder-All My Files- Previous '_' days.. how Do I erase the usage history? without deleting the actual file?

    How do you delete the Finder history in All My Files?
    I have 35,000 plus in the Previous 30 days category
    I'd like to clear all these out without 'trashing' them
    I HAVE gone to Go, Recent Folders and Clear AND the Apple icon
    Recent items and Clear, and I still have every thumbnail of every photo
    ever opened in my All My Files history..... (thousands)

    I also had the same issue, but I just discovered that you can set the finder to show, for example, 'Desktop' content by default. There are a few options on the dropdown list you will find there, but I figure you may want to go with the folder that shows fewer or no items at all (since you hate to see that endless list of files). Wanna try? Follow the following path:
    Finder > Preferences > General > "New Finder windows show:"
    Then choose the folder of your preference; close Finder to refresh; reopen Finder and the long list will be gone. For good! Notice though that, in doing this, you won't be deleting any files from Finder but rather putting them out of sight when you run Finder. So, in case you really need to pull up a file based on history, they will be just a click away on the top of the Finder's FAVORITES menu. It's working for me, and I hope it will work for you, too.

  • We just received our new mac and took it to the store to have the old files from our last computer transferred over.  Now we can't find all our files.  There was more then one user on the old machine.  How can we find the files from the other users?

    We need to find where the files for the other user on the computer are now located.  There were two other users on the old machine, which was taken into the store and ALL files were suppose to be transferred over to this computer. HELP!

    It appears what happened is the installer though it was looking at a empty drive and just went ahead and installed.
    I of course am assuming here you didn't use Disk Utility to format the drive first before installing, that would wipe out your files and programs for sure.
    So what to do, what to do.
    Well there is hope for you as long as the drive wasn't Filevaulted.
    I'll explain. When a hard drive writes data for the first time to a drive, it starts at the very top and works it's way down.
    When OS X was installed the first time, it was at the top of the drive, unless you upgraded then the upgraded OS X could have been written elsewhere.
    Now when you just reinstalled OS X, the new OS went on the top of the drive, overwriting any data that was there previously, so what was there you have lost forever which is about 8GB or so. If it was the previous OS there, then your more in luck because only the old OS X was overwritten.
    The remaining space on the drive still can have a copy of your files, provided it's not overwritten yet.
    It's because when a hard drive deletes data or reformats, it doesn't remove the data off the drive or overwrites it immediately, it's just made so it's SPACE is available for new files to be written there.
    So technically one can recover the deleted data off a non-encrypted/scrubbed hard drive with special software.
    The way it does this is it reads the 1's and 0's of the files themselves, and through a lot of figuring out, can tell what that file is and what it belongs too.
    So what you will have to do is this:
    Create a data recovery/undelete external boot drive
    or if you don't have the skills, then take it to a local PC/Mac tech and they can do a direct image of the drive and then you can run Data Rescue on it to rebuild your files.

  • Finder all my files won't show microsoft documents

    Since installing Yosemite on my Macbook Air, when I open the finder window to see my recently opened files (all my files), it won't show any word or excel files; only pictures and pdfs. Can anyone help me to fix this?

    Since installing Yosemite on my Macbook Air, when I open the finder window to see my recently opened files (all my files), it won't show any word or excel files; only pictures and pdfs. Can anyone help me to fix this?

  • Any advice on software to find/eliminate duplicate files (SL compatible)?

    Hi, I have 3 computers and files all over the place, including many duplicates. Can anyone suggest a good, reliable SL compatible software that allows me to compare and delete duplicate files,
    Thank you for your suggestions,

    I used TidyUp to clean up the mess in my wife's Pictures folder. It did a pretty good job.

Maybe you are looking for

  • ITunes crashes immediately after launching

    My hard drive crashed at some point today while I was at work. Now my iTunes keeps crashing every time I launch. The icon bounces in the dock a few times, and then I get the bomb message. Here is the crash report. Any help or suggestions would apprec

  • Keyboard layouts in Xmonad

    Hello, all! Can someone tell me, how to change between en and lt keyboard layouts using Caps Lock? (When disabled - en layout, active - lt)

  • How to get it to work on facebook

    facebook- I keep getting the message, you need to download latest version of flash player. I have tried several times to download latest version, but it never works on facebook.

  • Cost center and movement type 551

    Hi all! Can the cost center be determined automaticaly when creating this movement type 551? Regards

  • How many clients can use my mac shared connection?

    I'm sharing a wired connection wirelessly. What's the limit on client connections?  Thanks in advance if you can help.