Moving files to where folder name is only partially known

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

I have a series of files I need to move into folders.

The file names will always start with a number (i.e. 2015_071, 2015_072).

The files will always be consistently named at their start in this way.

The folders were I am moving the files to will also start with the same number but have a 'second' part which is different (i.e. '2015_071 (Adam)', '2015_071(Brown)').

Is it possible to move files to a folder where you only 'know' only part of the name of a folder? The move command/function does not seem to allow for such a thing.

I am a very basic user of Hazel so I cannot see a way to do this.

Help would be very gratefully received.
vw-Hazel
 
Posts: 18
Joined: Wed Nov 13, 2013 10:57 am

You would normally use the "Sort into subfolder" action but it does require you to specify the whole name. For now, you'd have to use a script to do what you want though I'm looking into adding a feature to support this in the future.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thank you very much for the reply, and I do hope you can add such a function.
vw-Hazel
 
Posts: 18
Joined: Wed Nov 13, 2013 10:57 am


Return to Open Discussion

cron