1

I am trying to create a workflow in Automator that will find hidden files in a folder by searching for files with names that begin with ".".
Currently, the Find FInder Items action is as follows:

Find Finder Items
    Search: [(Var:Selection path)]
        [All] of the following are true
            [Name] [begins with] "."

a screenshot of the action

Here is the log showing the error: action log

It does not receive any input, but outputs to a Move Finder Items action. Every time this action is run, it produces no results. Am I doing this wrong, or is there another way to find hidden files and folders in a variable path? I do not know much about other scripting languages such as applescript, but I am willing to use them if necessary. Thanks for reading!

1 Answer 1

1

Use a Run Shell Script action like this:

find "$@" -name .\*
1
  • Disregard that previous comment. I forgot to get the variable before running the script. Thank you very much! Commented Nov 4, 2014 at 17:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .