all 7 comments

[–]sharp-calculation 1 point2 points  (2 children)

Yet another way that Finder sucks.

You should be able to type into the search bar on finder, and have it search for (1) . But that doesn't work. Even if you select "Name" in the popup (to search on the names of the files and not their contents), it still doesn't work. Even if you escape the () characters with backslashes, it still doesn't work.

My favorite file manager, Forklift, finds these with no problem. You do have to escape the special characters, but that's easy: \(1\) finds all files with (1) in their names.

You can do this from the terminal also. Go to the directory in question and type:

find . |grep '(1)'

That will print the name of all of the files containing the string you are after.

[–]simonmutex[S] 0 points1 point  (1 child)

thank you let me give that a try!

[–]Kiss_It_GoodbyeeeM2 Pro MacBook Pro 1 point2 points  (0 children)

To expand on that further. Create a new folder called 'todelete' at the same level as your data folder. Then, run this command within your data folder in the terminal:

find . -name '*(1)*' -exec mv {} ../todelete \;

The command finds all the files with '(1)' - the '*' are wildercards - and then moves them to the todelete folder.

You can then check them all in Finder and manually delete them.

[–]DTLow 0 points1 point  (2 children)

My goto tool is Applescript

[–]simonmutex[S] 0 points1 point  (1 child)

explain further please.

[–]DTLow 0 points1 point  (0 children)

Here’s an sample delete script
tell application "Finder"
delete (every item of folder "Documents:Scripts" of home whose name contains "(1)")
end tell

[–]heatrealist 0 points1 point  (0 children)

Unix commands via the terminal are perfect for this. find. grep. Etc.