Searching for un-used files

Our Marketing department is close to maxing out 5.5 TBs of disk on our Xraid. Is there a way to search on files that have not been read in "x" number of days (likely a search that would show files that have not read before a particular date)?
I'm using the term "read" because we likely have many older files (image files) that have an older Created or Modified date, but are read for printing, PDF creation and collecting for print and will need to be retained. I just want to locate the files that have not been touched in 18 months, including read for creating a PDF or printing.

If your volume is indexed via spotlight, you might be able to pull this off. I said might. You really must test this because you are asking for if the file is "Read." The challenge here is that I am not sure if Spotlight will update a file that is read as compared to a file that is opened. So test this first. But, in theory, this might point you in the right direction.
First, create or collect a bunch of sample files. Then start investigating those files using the mdls command. For example, if I have files titled one.txt, two.mov, and three.doc, I might get a result similar to this when using mdls one.txt:
kMDItemContentCreationDate = 2009-06-24 17:05:15 -0400
kMDItemContentModificationDate = 2009-06-24 17:05:32 -0400
kMDItemContentType = "dyn.ah62d4rv4ge80g55sq2"
kMDItemContentTypeTree = (
"public.data",
"public.item"
kMDItemDisplayName = "one.txt"
kMDItemFSContentChangeDate = 2009-06-24 17:05:32 -0400
kMDItemFSCreationDate = 2009-06-24 17:05:15 -0400
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "one.txt"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 23
kMDItemFSTypeCode = ""
kMDItemKind = "Document"
kMDItemLastUsedDate = 2009-06-27 08:39:44 -0400
kMDItemUsedDates = (
2009-06-24 00:00:00 -0400,
2009-06-27 00:00:00 -0400
Ok, so you have some attributes that are based on time displayed in the results (kMDItemContentCreationDate , kMDItemFSContentChangeDate, kMDItemContentModificationDate, kMDItemFSCreationDate, and kMDItemLastUsedDate). The one that may provide what you are looking for is kMDItemLastUsedDate. This attribute will update each time a file is opened. Here is where the "read" part of your question comes in. I am guessing you are supporting the creative industry, likely desktop publishing. You have documents that point to images. Many never change but are used all the time. That being the case, I did not test to see if kMDItemLastUsedDate updates on an InDesign place or collect. I will let you test that.
If this works, then you can use mdfind to find files older than 7 days old. Here is how you do it:
mdfind -onlyin /Path/to/data 'kMDItemLastUsedDate <= $time.today(-7)'
The structure here is simple. Tell mdfind to look only in /Path/to/data (set this to your real path) and search for any file whose kMDItemLastUsedDate attribute is less than or equal to 7 days old (increase or decrease the number as needed).
This will produce a list of files. With a little shell scripting you can take the list and then act on it. ie: move the files, archive them, etc.
As mentioned, you need to test your specific condition. I am curious to know if a place or update links will trigger an update to kMDItemLastUsedDate.
Hope this helps.
Message was edited by: Strontium90

Similar Messages

  • When I open iMovie, the app searches for missing iPhoto files.  These are files I deleted.  I have to close about 30 dialog boxes before I can start using iMovie.  How do I make this stop?

    When I open iMovie (09), the app searches for missing iPhoto files.  These are files I deleted.  I have to close about 30 dialog boxes before I can start using iMovie.  How do I make this stop?

    So it seems the issue is when iMovie is wanting to creat thumbnails, if I ask it to ignore then it's fine but if not it hangs up searching for the video file.

  • Searching for a good file manager

    I'm searching for a good file manager. Konqueror 3.5 is quite good, dolphin 4.1 and konqueror 4.1 are not. Since konqueror 3.5 is going to die due to lack of support in the future, I kind of need to find a new good file manager...
    Do there exist file managers with the following features?
    Many of these features are things I thought were quite logical to be in a file manager, but seem to be missing in most "modern" ones...
    -independent of any desktop (gnome or KDE), just a standalone program
    -preferably not being both a web browser and file manager in once, at least not in an annoying way. Konqueror 3.5 shows that being that combination is possible without being annoying.
    -ability to have a tree view of the folders on one side and list view showing the files and subfolders of the folder currently selected in the tree on the other side
    -detailed list view showing at least filename, type, date and size, and the ability to sort according to any of these properties
    -a non-detailed view showing image contents would also be nice, to browse folders of photos or other images
    -ability to open files in certain programs if you doubleclick the file, NOT open it by singleclicking, singleclicking may only select it
    -ability to select multiple files by dragging box around files or using keys like "ctrl" and "shift"
    -ability to do "open terminal here" or type terminal commands in the current open directory
    -must have ability to drag files from one folder to another, from list view to tree view and vica versa, to move or copy them
    -and must have ability to use "ctrl+c" and "ctrl+v" to copy files and foldes from here to there
    -multiple tabs is a huge plus
    -favorites (to local folder paths) is also a huge plus
    -preview of files when hovering the mouse over them is nice
    -must have ability to zip and unzip (or other compression formats) folders by just right clicking them and choosing a zip/unzip command there
    -in addition to that, must also have ability to browse through a zip file as you would through a normal directory, and drag files from the insides of the zip file to the tree view to automatically unzip those files there, and of course "ctrl+c"/"ctrl+v" should also work to copy a file from the inside of the zip file, to some other folder on your disk
    -no horizontal autoscrolling in the tree view, that is an invention straight from the abyss...

    I know exactly how you feel about KDE 4 vs. 3 -- Konqueror was the best part of KDE for me (pretty much the only part I ever used, actually; my window manager is a slightly modified version of WMII and I generally loathe "desktop environments"). KDE 4 ruined it, completely and utterly.
    I submitted about 20 different bug reports about Konqeuror 4, mostly features that they'd deleted or mangled; some of them are starting to be addressed now. I don't think they'll ever fix the speed issues though, because those are dependent on the underlying KDE 4 libraries as far as I can tell -- it's as if KDE 4 were purposely and deliberately designed to be slower than KDE 3. Even if they fix all of its deficiencies, that'll probably keep me from using it...
    Right now there's KDEmod, which will hopefully maintain its KDE 3 branch for a while longer. It's starting to show some problems, though; I haven't been able to get kdemod konqueror 3 to work fully out of the box (the settings pages are all blank). On my main machine, I somehow managed to hack together some of the KDEmod3 packages so that I have a functional konqueror 3 running alongside the Arch repository's version of KDE4. I'm afraid to pacman -Syu now, though, because it will probably break horribly :P
    I don't remember exactly how I got konqueror 3 going like that, as I did it in my initial fit of rage after I did the pacman -Syu that got me KDE4 (a decision I have regretted ever since), but it was something like this:
    1. move /opt to /opt.kde4
    2. make a new /opt
    3. download several KDE 3 packages from the KDEmod3 repositories manually
    4. extract those packages into the new /opt with tar -xzf (NOT pacman!)
    5. try /opt/kde/bin/konqueror
    6. read reams of error messages about missing libraries, segfaults, etc.
    7. try to supply the missing libraries by downloading other kdemod3 packages and manually extracting them
    8. goto 5
    Then, when everything worked (sort of), I renamed some stuff so that 'konqueror' is konqueror 4 (I think having it konqueror 3 broke something else, but I don't remember what), and konqueror 3 is called 'k3nqueror'.
    If KDEmod3 ever goes away and there's no other good replacement file manager by then, I'll probably take the source code of KDE3 and try to make a standalone version of konqueror out of it. (Which will probably be quite a project because of how interdependent all the KDE components are.)
    Some features I "need" in a file manager, besides the ones you mentioned:
    - Konqueror's tree view (where you can expand folder branches in the file list)
    - Infinite view splitting -- I frequently have my konqueror windows split into 4, sometimes as many as 6 or 7 view panes. Very useful for sorting out files.
    - Selection rectangles are sensitive only over files -- I find full-row-select really annoying, because there are no guaranteed "blank" areas that you can click on to clear a selection. I also use this behaviour to grab long-named files that are interspersed with short ones, because they hilight first when the rectangle touches them (you wouldn't think this very useful, but surprisingly often you do want to do something to all the long-named files...)
    - Right-clicking on a folder and clicking "Paste" pastes into that folder, not the current one -- you'd be amazed at how many file managers get this wrong. I shouldn't have to cd into a folder just to paste some files there.

  • How Can I stop Elements 7 from searching for a memory file?

    Recently, every time I turn on Elements 7 it starts searching for a missing file each time it encounters a photo with a "?" in the corner. I must have pressed a key somewhere to start this function but now I can't get it to stop. I can only continue to another photo if I press cancel while it is searching but I have to do this for each "?" marked picture. Is there any way of cancelling this feature? Thanks in anticipation.

    Two solutions:
    1. Uncheck the option Edit > Preferences > Files > Automatically Search For And Reconnect Missing Files.
    2. Either reconnect the missing files or delete them from the catalog, using the File > Reconnect > All Missing command.  See this FAQ for tips on how to use the command:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Quickly_reconnecting_large
    Leaving missing files in your catalog doesn't have any benefit.

  • Working on a script to search for and move files - need Guru help!

    Hi, I'm trying to help my dad with a task and my outdated Applescript knowledge isn't helping me much.
    Here's what I need to do in a nutshell:
    FolderA contains a bunch of JPG files.
    FolderB is the root of a hierarchy of folders containing DNG files.
    Each file of FolderA has a mating file (same name but with .DNG) somewhere in the hierarchy of FolderB.
    The goal is to move each JPG file from Folder A to the folder containing it's mate.
    So, the basic flow is:
    1. Get list of files in folderA
    2. Looping through list, strip out file name (fileA) and find the DNG file somewhere inside FolderB
    3. Get the path of the folder containing the matching DNG file
    4. Copy/move FileA to the folder.
    5. Loop back to #2
    OK, so here's where I am:
    tell application "Finder"
    set JPEGfolder to "Macintosh HD:DadTest1:DadA"
    set DNGfolder to "Macintosh HD:DadTest1:DadB"
    set a_list to every file in Afolder
    repeat with i from 1 to number of items in a_list
    -- Everything happens within this loop
    set a_file to (item i of a_list)
    set fileInfo to info for a_file
    set theName to displayed name of fileInfo as string
    -- now theName contains the actual file name minus the extension
    At this point I don't know how to search for the mating file using Applescript. If I was in UNIX I could do a "find . -name filename" and parse out the path, but I don't know how this works in Applescript.
    I think I can figure out how to move the file once I have the path, but the search routine has me stumped for now.
    Any thoughts?
    Thanks!

    In my opinion your best bet is to take a 180° turn and simplify things significantly.
    Your current approach involves multiple file searches - for each file in the JPEG folder, search all the DNG folders looking for a match. That's an large number of searches, and a large number of something that AppleScript isn't great at.
    Instead you'd be far better off walking once through the DNG folders. For each DNG file look for a matching JPG file in the one folder that contains JPEGs. This would be exponentially faster - one walk through the filesystem vs. one walk through the filesystem for every JPEG.
    This should give you an idea of what I'm talking about (untested):
    global JPEGfolder
    on run
      set JPEGfolder to alias "Macintosh HD:DadTest1:DadA"
      set DNGfolder to alias "Macintosh HD:DadTest1:DadB"
      processAFolder(DNGfolder)
    end run
    on processAFolder(theFolder)
      tell application "Finder"
        repeat with eachItem in folder theFolder
          if class of eachItem is file and name extension of eachItem is "dng" then
            set basename to characters 1 through -5 of (get name of eachItem)
            try
              move file (basename & ".jpg") of folder JPEGfolder to folder theFolder
            end try
          else if class of eachItem is folder then
            my processAFolder(eachItem)
          end if
        end repeat
      end tell
    end processAFolder
    The idea here is that you start off in the top folder and iterate through each item. If the item is a file and it's name extension is DNG then try to move a corresponding file from the JPEG folder to the current folder. This is wrapped in a try block so the script doesn't fail if there is no corresponding JPG.
    If the current item is a folder then the script descends into that folder by calling itself.

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    If you are missing using google maps - try the Nokia map app called "here"

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    If you are missing using google maps - try the Nokia map app called "here"

  • Search for images using Keywords Problem.

    1) In LR4, Search for images using Keywords (click on arrow next to Keyword).
    2) Select image, export to PS6, save as Tif.
    3) Tif retains all Keywords when it appears in LR
    4) Despite that, image does not show up in the same 'Search for images using Keywords'.
    Can anyone help with this, it is frustrating me!

    V. 4.1
    Thanks, I will try, but it seems to be an inconsistent problem.
    Simon Fletcher
    Simon Fletcher Photography
    Woody's Nest
    Newton of Kinkell
    by Conon Bridge
    Ross-shire
    Scotland
    UK  IV7 8AS
    Tel: 01 349 864 830
    Web: www.simonfletcherphotography.co.uk
    Work:
    The Glass Scribe
    Tel: 01 349 867 088
    Email: [email protected]
    Web: www.glassscribe.com

  • How to Modify Search for Leads using Date types in the Assgmnt Block Date

    Hello Experts,
    I have a requirement to modify the search for Leads using Dates in the Assignment Block Dates and using the Posting Date of the transaction.
    Any ideas?
    Thank you in advance,
    Justin

    If you look at the grants, you'll see that there are over 170 objects from the FLOWS_030000 granted to PUBLIC:
    SQL> select count(*) from dba_tab_privs where owner= 'FLOWS_030000' and grantee = 'PUBLIC';
    173
    If we were go grant these privileges to a role, called APEX_APP_RU, and grant this role to APEX_PUBLIC_USER and any schemas an application is linked to (Workspace to Schema), would that be a workable solution?
    The only problem I see right off hand that this might not work is that PUBLIC has synonyms created for the FLOWS_030000 objects. If we revoke the underlying privileges, because of the synonyms, this might not work.
    SQL> select COUNT(*) from dba_synonyms where table_owner = 'FLOWS_030000' and owner = 'PUBLIC';
    176
    Does anyone else have any ideas?

  • How to search for names of files in a folder

    I've been searching this for awhile and haven't found anything so,I have a game and a game map editor or what not.. and you know when a user clicks on what map they want and such, but how can I search the files inside of a folder? I found JFileChooser but I don't really want to use that because it just wouldn't be right ... so any help would be nice, a link to somewhere, or another word to try and search
    thanks

    Look at the File API...
    list() or listFiles() methods will return an array with every file and directory within a directory.

  • Recently opening an HTML file on my computer makes firefox attempt a search for the entire file name in the search engine online, how to do i correct that?

    when opening an HTML file recently my Firefox automatically opens up a yahoo search screen and the file, the entire file name and route for the file is searched for online. I don't even use Yahoo Search i use Google but that doesn't mater have to open the file manually with searching it on on the open screen to read it because it's trying to search for it online instead of reading it from where i clicked on it.
    I.E.
    file:///F:/Reading/II.html
    would try to search
    https://us.search.yahoo.com/yhs/search?hspart=aztec&hsimp=yhs-default&type=derr_100_476&p=file%3A%2F%2F%2FF%3A%2FReading%2Fhtml&rnd=737753354&param1=sid%3D476%3Aaid%3D100%3Aver%3D15005%3Atm%3D264%3Asrc%3Dderr%3Alng%3Den%3Aitype%3Da%3Auip%3D1124173343
    I have no idea what the
    &rnd=737753354&param1=sid%3D476%3Aaid%3D100%3Aver%3D15005%3Atm%3D264%3Asrc%3Dderr%3Alng%3Den%3Aitype%3Da%3Auip%3D1124173343
    is for but it's never done this before.

    Please read this article about restoring bookmarks:
    http://kb.mozillazine.org/Lost_bookmarks
    As far as your passwords are concerned, I don't think there's anything you can do. But for the future, you can use the following add-ons to avoid any future loss:
    https://addons.mozilla.org/en-US/firefox/addon/2848/
    or
    http://www.xmarks.com/
    Both are good.
    And a simple way to import your bookmarks (since you already saved it on your desktop as html) is:
    Bookmarks / Organized Bookmarks / Import and Export
    Good luck.

  • Searching for a specific file size

    Hello,
    It's been a while but it seems like XP let me search for specific file sizes - e.g. if I wanted to search for files that were greater than 10GB or if I wanted to search for files less than 20GB.
    I can't figure it out in Windows 8.1.
    If the answer is possible through standard search and not powershell, I'd prefer the GUI way.
    Thanks

    In File Explorer (was Windows Explorer), type the search criteria into the box in the top right of the screen and press Enter.
    Example searches are:
    A minimum file size, simply type size:>30,000KB into the Search box and press Enter.
    type:=.pdf or type:=.doc will display specific file types.
    filename:x will display files using a partial filename. x represents the partial filename you want to search for.
    kind:video, kind:music or kind:pictures will find all the videos, music or pictures.
    If you just click or tap in the Search box, Search Tools will appear which allows the choosing of a Kind, a Size, Date Modified, Other Properties and Advanced search. In Folder Options > Search Tab, the search options can be changed, e.g. Find partial
    matches.
    Providing the location is indexed, you can search in File Explorer for a specific word or phrase by typing content:
    followed by your phrase enclosed in double quotes. This will produce a list of files matching the criterion.
    Speed up the search by opening File Explorer (was Windows Explorer) at the folder you want to search, rather than at the root folder. Also, pressing F3 will show Search options like Date Modified and Size.
    Ninety-nine per cent of politicians give the rest a bad name.

  • Searching for a single file

    Hi,
    We are running Zenworks 4 ir7. We have an in house application that is
    used on only some systems and now needs to be updated. It does not show
    up on the software list...is there some way using zenworks to look for a
    certain file (which is unique to this application)in order to flag the
    systems that are running this application
    Thanks
    James

    James,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Searching for a text file

    hi i want to search for a file in the same folder as my project and read the contents of that file ... i know how to read from text file but i just need to know how i can search in the folder to look for a txt file called me.txt and open it for reading.. any suggestions?
    thanks in advance
    please provide some code for me... thx alot

    Look at the File class in Java API. You can create a file object by passing the file name.
    Then you can check whether the file exists or not by using exist methos of the File. (Of course, you need to know the path of the file).

  • Search for folders or file on OS X Mavericks (10.9)

    I can't find folder when I make Search with new OS X Mavericks updated? I have 4 Tr HD when am looking for my file I have to make search but now search can't find files?????
    I already try this way Mac Basics: Spotlight but isn't working also, I use to do this search 100 time a day before I update my Mac, how I can do it now?
    Please attached file.

    Normally, Mavericks searches just like any version before. I just tried and mine finds folders just fine. The only thing I could think of is this:
    Try going to System Prefrences -> Spotlight and make sure folders are checked there
    Also, make sure that you have the correct tab selected at the top - in your screenshot, you are only searching through a single folder. Is that intentional?
    If that doesn't work try rebuilding the spotlight index: http://osxdaily.com/2012/01/17/rebuild-spotlight-index/

Maybe you are looking for

  • What are the REAL system requirements for High Definition Editing?

    According to Apple, you can edit HD in iMovie with: a G4 1GHz or faster processor, 512MB RAM or higher, and OSX 10.3.6 or higher. I am running a G4 iMac 1.25GHz with 512MB DDR SDRAM and Tiger 10.4.3 My machine can barely import HD from my new Sony HD

  • Importing large quantity of photos

    I have over 3000 pictures saved on my HD. I would like some advice on importing this large quantity. Problems are: Many duplicate file names in different directories (they are currently named as they were in the camera), files saved as NEF and JPG in

  • Production Planning Report

    Hi, My Requirement is This report should provide comparision of Standard V/s Actual Machine hours utilization for a particular resource or for all the resources utilized in a given period and its variance. If the variance percentage is more than 10%

  • ITunes - Playing Whole Album

    I want to play a whole album in iTunes but no matter how I try to configure things, it plays one song at a time and then stops; at which time I have to click on the next cut. How do you play a whole album continuously from the first to the last track

  • Best way to use PIP in FCP6?

    I have a quick question. Say I have a large clip of someone giving a presentation--about 30 minutes long. During the presentation I superimpose slides full-screen intermittently for emphasis, but during those shots I also want a small PIP of the pres