copy files with matched criteria

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

copy files with matched criteria Tue Oct 29, 2019 12:29 pm • by misanthrophy
Hi, I need a hint to finish my rule.

I have that scenario: I download an application which gets saved always in the same behaviour:

Name Version Number extension

I want to copy the downloaded file into a new main folder, into that main folder are subfolder for the apps itself and within these subfolders either the apps itself should get saved or even better it creates a folder with the version and in that folder the actual file is then located.

the result should look like this:

Downloads folder contains these files:

1Password 7.4.2.ipa
Airmail 2.0.5.ipa
Eve 4.0.1.ipa

Archive folder for backup purpose:

1Password --> 7.4.2 --> 1Password 7.4.2.ipa (and if a new version exists)
1Password --> 7.4.3 --> 1Password 7.4.3.ipa
Airmail --> 2.0.5 --> Airmail 2.0.5.ipa (and if a new version exists)
Airmail --> 2.0.6 --> Airmail 2.0.6.ipa
Eve --> 4.0.1 --> Eve 4.0.1.ipa (and if a new version exists)
Eve --> 4.0.2 --> Eve 4.0.2.ipa

- Is it possible for Hazel to check the italic text and if it exist it will automatically move it into that folder?
- Is it possible for Hazel to use the bold text for the first subfolder (version umber)?
- If the subfolder with the version numbers are not possible, it wouldn't be a big deal.

Right now I run into these issues:

Everytime a new file is stored in the Downloads folder and the rule gets triggered it creates a new folder so my Outcome right now is this:

Downloads folder contains these files:

1Password 7.4.2.ipa
1Password 7.4.3.ipa
Airmail 2.0.5.ipa
Eve 4.0.1.ipa

Archive folder for backup purpose:

1Password 7.4.2 --> 1Password 7.4.2.ipa
1Password 7.4.3 --> 1Password 7.4.3.ipa
Airmail 2.0.5 --> Airmail 2.0.5.ipa
Eve 4.0.1 --> Eve 4.0.1.ipa

My rule is pretty simple right now as I don't know how to match only certain parts of the file name:

If Extension Is ipa

Copy to folder Apps
Sort into subfolder with pattern name

I already played a bit with subfolders and the arrow sign for additional subfolders, renaming the file etc. But I am not able to set up my preferred rule successfully.

Can someone help me?
misanthrophy
 
Posts: 1
Joined: Tue Oct 29, 2019 11:52 am

Re: copy files with matched criteria Wed Oct 30, 2019 9:55 am • by Mr_Noodle
Are you using match patterns? If not, then look them up in the manual as they should do what you want here.
Mr_Noodle
Site Admin
 
Posts: 8318
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support