Automator - Filter Finter Items

Hi guys... need some help!
I'd like to create a simple workflow that would select my recent files (from a very big folder) from the past month (or two) and copy them into another folder! I've looked but there's no option (that I could find)....
Can anyone help me ?
Thanks in advance.
Nuno.

message sent to red_menace:
Hi red_menace, Thanks ! I had a look at your webpage and found just what I was looking for. You've created an excellent Automator action that does exactly what I was looking for (Filter Finder Items by Age). I will certainly look more "deep" at you webpage. Thanks once more. Nuno

Similar Messages

  • Automator - Filter Finder Items filtering contents of sub folders

    I have an external hard drive and I want to keep my iTunes music library automatically backed up on it. I am using automator to copy my most recent files to the external (run the script once a week). I let iTunes manage all my audio files, etc so I figured the created, modified, opened dates would be the best way to filter the items I want to copy over. The workflow is as follows.
    1) Get Specified Finder Items (iTunes Library Music folder)
    2) Get Folder Contents (All artist directories (Repeat for each subfolder found is NOT checked)
    3) Filter Finder Items (ANY of Date Last Modified, Date Created, Date last opened in the last week)
    4) Copy finder items (to my external hard drive)
    I am having two problems.
    1) If I play a song from my second hard drive iTunes copies it into it's directory when it opens... iTunes Music > Artist > Album > Song.mp3. The mp3's modified date, created date, and last opened date is the same as the file that got copied. The new Artist and Album directories that were created by itunes have current created dates (makes sense). However, the filter is still not catching it. Only if the mp3 is current will the filter catch it. I DON'T have 'Repeat for each subfolder found'... shouldn't the filter check for the folder's modified, created and last opened dates?
    2) If everything works the way I want it to I see this to be a problem in the future. If I add an album by an artist that I already have an album for, the filter will skip it. Any suggestions on how I could handle this problem?
    Thanks.

    Found out that since Hebrew was set up first in the language option the filter on textual was failing. After I changed the order of the languages in the language preferences the file filter by name, extension etc… worked O.K.
    Nati

  • Automator Filter Finder Items

    A very simple task, which I have attempted to figure out many times over the last few months; but my repeated attempts haven't been successful. This should be easy for someone to resolve…
    I would like to strip out all the files of a certain extension (.txt) from an hierarchy of nested folders, & move them to the Trash. (Told you it was easy!)
    Here's what I think ought to work:
    • Create an Automator Workflow
    • 'Ask for Finder Items' to select the topmost folder
    • 'Get Folder Contents' with 'Repeat for each subfolder found' — (the results successfully include all the relevant files)
    • 'Filter Finder Items': "find files where any of the following are true: file extension is .txt" — (I tried "txt" as well as ".txt")
    • 'Move Finder Items to Trash'.
    The files turn up (alongside loads of other junk) in the 'Get Folder Contents' step, & they are reported in the results; but when I try to filter out everything apart from the .txt files, so that only the .txt files remain, the filter reports no results.
    So the 'Filter Finder Items' action completes with no results, & with a warning that: The action “Move Finder Items to Trash” was not supplied with the required data.
    I think it must be something obvious, but I can't figure it out, & although I've searched extensively online, everyone else with similar problems has other complications which get resolved… so they lose interest just at the point where I think they're going to reveal the solution.

    You need to understand the issues here. Automator was released with 10.4 (Tiger), and many of the core automator actions date from that time.  This introduces forward-compatability problems: things that should work (and maybe did work) in 10.4 might not work as specified in 10.6, depending on if/how the underlying cocoa APIs have changed.  Now, in the best of all possible worlds, Apple would update automator actions with each new upgrade, but it's probably not needed for the bulk of the actions, and Apple may not be aware of problems that do exist with given actions (that depends on whether people filed meaningful bug reports on them).
    Don't be confused by the seeming simplicity of what I did: the Move Finder Items to Trash action probably uses cocoa file system APIs directly, whereas my applescript leverages the developed programmatic underpinnings of the Finder - the Finder has a built-in system for moving files in bulk, whereas the action is obviously moving files one at a time (which is where things are getting congested).
    Filter Finder Items seems to be a simple metadata search (just another use of the spotlight framework, which hasn't changed much since its inception) so I can't see any way in which it would fail.  it is, of course, limited by the same things that spotlight is limited by - it won't find material that's not indexed and may not do exactly what one always expects (e.g., may not recognize an extension as an extension unless the extension belongs to an app registered with the system) but other than that there's very little it can do wrong.  As a general rule, actions that deal only with manipulating automator data (e.g. modifying references passed from one action to the next) won't break.  You'll only see breakage with actions that need to access exterior frameworks that have changed significantly since the actions were created. 
    That's the best answer you're going to get: one can't prove a negative, so there's no way to demonstrate that FFI isn't broken.  it's easy enough to check for a given task, though - just run the workflow you have on a test folder without the deleting action, check the results window, and compare it to the results you expect (which you can gather by eye in a Finder search window, through an applescript, through an app that will report the number of files of given types in a folder…). 

  • Automator - Filter Finder Items bug?

    I've only started using Automator a few months ago, but now I ran into a problem, which I think is not my fault, but is a bug in Automator.
    Here's the scenario:
    What I have is a Folder Action on the Downloads folder, and the following list of actions in order:
    Get Finder Items: how.i.met.your.mother.s04e05.srt (this is for testing purposes)
    Filter Finder Items - if ANY of the following are true:
    Name contains "big.bang.theory"
    Name contains "how.i.met.your.mother"
    Name contains "fringe"
    etc
    I managed to find out that the same kind of container (here: Name) could not be used multiple times, because it gives no result in case "Any" of them are true. There is no way to test if any of these strings are present in the file name. I thought I could use this action like a function with "OR"-separated boolean parameters, but apparently that only works if I change the container type, e.g. I use Kind instead of Name. Meaning, if there is only one Name container, then it outputs the correct result (the .srt file, if the statement is true).
    So, did I do something wrong, or is this really a bug in Automator? If you have an alternate suggestion on how to solve this, please don't hold it back

    I have the same problem.
    I am trying to select ANY of the following extentions: JPG, PNG, TIFF and I get no output. While if I only select one extention I do get the right output for the extention selected.
    ANY of the following are true
                   File extention          is          JPG
                   File extention          is          PNG
                   File extention          is          TIFF
         ~~~no results produced~~~
    ANY of the following are true
                   File extention          is          JPG
         ~~~001.JPG, 002.JPG, etc..~~~

  • Is there a bug in Automator filter finder items?

    I'm trying to do a batch processing script and there seems to be a bug with items created earlier in the script.  For example, the 2brokegirls.jpg file was created earlier in the script and added to the main folder whose contents can be seen in the get folder contents action at the top.  however, the filter finder items misses that item when filtering by the extension ".jpg" which as you can see obviously appears at the top.  Is this a bug in Automator?  My guess is that the filter is using some spotlight indexing and that index hasn't been updated since the file was just added.  Does anyone know of a workaround?
    Thanks.

    I also have this problem. I am getting literally hundreds of emails each day althoug i have clicked all the radio buttons to not receive any emails in "my preferences... email notifications. THis is gumming up my Ipad, Iphone and email in box Help!!

  • Automator's Filter Finder Items behaves incorrectly

    Can anyone confirm the misbehaviour of the Filter Finder Items in Automator when set to filter items whose date created is not in the last 7 days?  I have a workflow being used as a folder action to keep my downloads folder tidy but never runs right as it gets rid of content that I've just downloaded.
    Link to workflow: http://cl.ly/1S0h1I3m3r1t3l2a1W1J
    Insight would be appreciated.

    The only reliable way to do that would be to take an inventory of the filesystem, and compare it with an earlier inventory. I don't know of any easy way to do that with built-in tools. If you use Time Machine, there are third-party tools such as BackupLoupe that compare snapshots. Or you could try something like Uninstaller, though it's quirky and doesn't seem to be maintained much anymore.
    At an advanced level, there are UNIX tools such as mtree, which is built in, radmind, or tripwire, but you probably don't want to go there. I use radmind and mtree for different purposes, but they're not for the squeamish.

  • Filter finder Items... broken? (also request to help streamline script)

    Let me begin by saying that I've done the SAME THING for a long time with this Automator script, and it's worked flawlessly. I recently added some now automator actions (and later deleted them) thinking they were the culprit of why my "filter finder items" was showing no results, but I'm not sure at all at this point.
    Here's the script (that has been working fine until at least the 7th):
    It's long, so bear with me (I use this script to install custom Sims2 content when I download it:
    ("Get Specified Folder" uses the "Get specified finder items" action, I just didn't want to type that every time).
    New Folder: Recent (in my downloads folder)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Copy Finder items (to Recent)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Move finder itmes (to my core download folder (they're generally in subfolders after downloading, as are the .package files)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Copy finder items (to Recent)
    Get Specified Folder: Recent
    Create Archive (on desktop named Sims2)
    Rename (add date to end of file name)
    Rename (add time to end of file name)
    Get Specified Folder: Recent
    Move to trash
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Move finder items (to Sims2 Downloads folder, which installs the custom content, replacing any repeats)
    Get Specified Folder: my downloads folder
    Get folder contents
    Filter finder items (name contains Sims2Pack)
    Move Finder items (Sims 2 Packs folder within the downloads folder... these items must be installed into the game by double-clicking on them.)
    Get Specified folder: Desktop
    Get folder contents
    Filter finder items (name contains Sims2)
    Move Finder items (To Backup)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains MTS (most of the containing download folders (after they've been expanded by another automator script, have this at the beginning of the folder name due to where I commonly download my custom content)
    Move to trash
    And that concludes the script. I know it could probably be streamlined (another reason I'm posting the whole thing) but it worked until very recently, and I don't know what could cause it to no longer report results after filtering within the subfolders while within the main folder works fine.
    To clarify, it's recently been simply deleting the MTS folders and creating a "Recent" folder and archiving it but it's empty. So the script is not filtering for the Sims2Pack data nor the .package data as it used to.
    I haven't modified the script, and I've deleted all actions that I downloaded recently (backed them up in case they're not the culprit). Also ran disk permission repair but nothing was repaired in regards to Automator.
    Thanks.
    iMac Intel   Mac OS X (10.4.7)  

    Here is an update to the script, however filter continue to not work as it once did.
    New Folder: Recent (in my downloads folder)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Copy Finder items (to Recent)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Move finder itmes (to my core download folder (they're generally in subfolders after downloading, as are the .package files)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains Sims2Pack)
    Copy finder items (to Recent)
    Get Specified Folder: Recent
    Create Archive (on in "to backup" named Sims2)
    Rename (add date to end of file name)
    Rename (add time to end of file name)
    Get Specified Folder: Recent
    Move to trash
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains .package)
    Move finder items (to Sims2 Downloads folder, which installs the custom content, replacing any repeats)
    Get Specified Folder: my downloads folder
    Get folder contents
    Filter finder items (name contains Sims2Pack)
    Move Finder items (Sims 2 Packs folder within the downloads folder... these items must be installed into the game by double-clicking on them.)
    Get Specified Folder: my downloads folder
    Get folder contents (repeat for each subfolder found)
    Filter finder items (name contains MTS (most of the containing download folders (after they've been expanded by another automator script, have this at the beginning of the folder name due to where I commonly download my custom content)
    Move to trash
    I removed the step where it was saving it to the desktop. If the filters ever work again, this should therefore go faster than before.

  • "Filter Finder Items" not working properly

    I'm taking my first crack at Automator, and while I've made good progress, one of the built-in actions, "Filter Finder Items", is just not behaving predictably. Basically, I'm doing the following:
    1) Get selected finder items - pulls a selected folder
    2) Set variable - this gives me a variable for the name of the folder we're working with
    3) Create a new folder inside the selected folder
    4) Get folder contents of selected folder
    5) Filter for three different file extensions - here's where my problem starts
    6) Move the filtered files into the new subfolder (though it really seems to be copying, which necessitates the following steps to get rid of the original files)
    7) Get contents of selected folder again
    8) Filter on the same three files extensions - this time it works properly
    9) Move filtered files to Trash
    For some reason, the first filter action doesn't seem to be working at all - if I have 15 files in the selected folder, but only three that match the filter, all 15 will be copied to the new subfolder. The second folder action will then, inexplicably, work exactly as it should and move the proper files to the Trash.
    Does anybody know why this action doesn't want to cooperate? Has anybody else seen something similar?
    Thanks for any hints/help.
    Rick
    Message was edited by: rnb2

    Saving the workflow as an application should be all that is needed, but the first action (the one that gets the items to work with) may not be correct for your usage. If the first action is *Get Selected Finder Items*, unfortunately the selection would be the application itself, since that is what was most recently selected.
    In this case, the application can be dragged onto the Finder's toolbar (where it will work with the current selection), otherwise the first action can be removed and the application used as a droplet (items dropped onto the application are passed to the workflow) or a Finder plugin.
    The first action can also be replaced with an *Ask for Finder Items* action (ignoring input).

  • 'Filter finder items' by variable

    Hi,
    Is this just a flaw in Automator or am I being a n00b? All I want is to filter finder items (name) by a variable set earlier in the action. This should be a gimme, right? Wrong. No worky.
    Anyone know why / how to get this working ?
    thanks in advance

    An action needs to be written to use variables (specifically, a different kind of text field is used), and not all do. Several of Apple's actions are from a time before variables, so they probably just haven't been updated to use them yet.
    You might check out this macosxhints article, but it doesn't always work.

  • Multiple Extension in Filter Finder Items

    Does anyone know how to make Filter Finder Items filter for more than one extension? For example, if I want to make a script filter for MOV, AVI, and WMV?

    Well, it sure would be nice if the filter action would do that for you directly, but since it doesn't there are a few alternatives. You can use a Run AppleScript action to do the filters, a Run Shell Script action to do the filters, or use a bunch of Automator actions that do each of the specific filters and combine the individual results:
    Tested workflow:
    1) Ask for Finder Items (Type: Files, Allow Multiple Selection, Ignore Input)
    2) Set Value of Variable (Variable: Source Items) -- store the original items
    3) Filter Finder Items (Whose: Name Extension is equal to mov)
    4) Set Value of Variable (Variable: MOV items) -- store filtered MOV items
    5) Get Value of Variable (Variable: Source Items, Ignore Input)
    6) Filter Finder Items (Whose: Name Extension is equal to avi)
    7) Set Value of Variable (Variable: AVI items) -- store filtered AVI items
    8) Get Value of Variable (Variable: Source Items, Ignore Input)
    9) Filter Finder Items (Whose: Name Extension is equal to wmv)
    10) Get Value of Variable (Variable: MOV items, Accept Input) -- add the previous filtered items
    11) Get Value of Variable (Variable: AVI items, Accept Input) -- add the previous filtered items
    12) View Results (or continue with the rest of the workflow)
    Note that the Accept/Ignore Input item will let you combine or isolate the action from the results of the previous one.

  • R12: How to filter Open Item Revaluation Report based on GL Date

    Hi,
    Anybody know how to filter Open Item Revaluation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    Pl do not post duplicates - R12: How to filter Open Item Revaluation Report based on GL Date

  • Hierarchical Filter Web Item causes validation warning.

    When I validate my web template which contains a hierarchical filter web item agianst the server I get the following warning (W1):
    Mapping for Service item_validation_service for Object HIERARCHICAL_FILTER_ITEM missing
    Maybe this also relates to my problem of not having the possibility to choose a characteristic for the hierarchical filter (see my post <a href="https://forums.sdn.sap.com/thread.jspa?threadID=209968&tstart=0">https://forums.sdn.sap.com/thread.jspa?threadID=209968&tstart=0</a>)
    How can I fix this mapping issue?
    Thanks to any answers in advance.
    Best regards,
    Philipp

    Hello,
    Your first problem is that ABAP SP does not equal Java SP. This is not a valid scenario.
    Please update both to <b>the same SP level</b>.
    After it, please retest your problem. I think that the problems will be solved (at least this one with validation service).
    Short explanation to validation service:
    Every template created in WAD will be validated before saving it. We have two validations:
    1. one is locally with the meta data this checks if:
      - all used parameters are on its place,
      - all parameter values are valid,
      - all defined items are existing...
    2. second one is extended validation on the Java Server: this one checks i.e. following:
      - are all used data providers valid
      - are all used characteristics valid
      - item dependent validation (e.g. if one item needs a dependency between to setting - this can be checked here)
    The first one will be executed in Front-End and in ABAP Back-End. The second one in Java. Because your Java stack is /probably/ lower than ABAP, this validation does not work.
    I hope I have explained it clearly.
    Regards, Karol
    BI Development

  • How to filter list items by current system time in search result wp or result source SharePoint 2013

    I want to display Items with PressDate less than or equal
    to current time in my search result webpart in SharePoint 2013.
    It is working fine for current date but not considering current time.
    {searchTerms} ContentType="ABC" PressDateTime<{Today+1}
    Above query not supporting for Now(), due to that it
    is showing items which are less than or equal to current (today's) date.
    How can I compare time with current system Time?..Thanks in advance.
    Regards, --NP

    You can achieve the same by using a Current Date Offset in a CAML Query to Filter List Items.
    Have below links for your reference.
    Sharepoint Tips And Tricks
    CAML Query to Date prior to 30 days from today
    Thanks.

  • Filter list items based on security groups o365

    How to filter list items based on security groups in o365.

    Hi,
    According to your description, my understanding is that you want to filter list items based on the Office 365 security groups.
    If that is the case, I suggest you can create a data view to filter the list items with CAML Query like below:
    <Where>
    <Membership Type="CurrentUserGroups">
    <FieldRef Name="VisibleToGroup"/>
    </Membership>
    </Where>
    For more information, please refer the detailed article below:
    SharePoint - Filtering a View by Group Membership
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Min-Width in Filter Pane Item

    Hi All
    I have a scenario where I have to display data in a Report using the BEX Web Application Designer (BI AddOn 7.X – based on 7.3).
    In the WAD I have used filter pane items. When I preview the WAD Template and filter the data with characters which are lower than the width of the Filter pane I got this.
    But it is important that the filters have all time the same width during the navigation.
    Things That I have tried :
    Fix values in the Web Template Parameter
    Min-Width definition in the css
    Thanks for your feedback.
    King Regards
    J

    Hi Janine,
    Can you please use the latest version of IGS and check whether it helps you.
    Also, can you please apply latest patch of SAP GUI for Windows 7.30  and
    latest patch for BI 7.0 ADDON FOR SAP GUI 7.30 and check whether it helps you.
    Also, please refer the following SAP Note:
    147519 - Maintenance strategy / deadlines for SAP GUI
    And, can you please clarify regarding what is the SPS level applied to ABAP stack and Java stack and SP and Patch Level applied to BI Java components with regard to this issue.
    Also, please refer the following SAP KBA Note:
    1899396 - Patch Level 0 for BI Java Installation - Detailed Information
    Thanks & Regards,
    Sapna

Maybe you are looking for