Beginners Questions

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

Moderator: Mr_Noodle

Beginners Questions Sun Jan 06, 2013 11:02 am • by Jup
I would like to solve the following simple problem:

Download something resulting into a new folder (with files) in my DOWNLOAD folder
check the content and move the COMPLETE folder somethere else depending on the content. And NO I don't want to move single files. I want to move the whole folder.

OR

process the content of a folder based on the file extension (that works) and
move the COMPLETE folder after processing somethere else (I cannot get working that)

I find some hints on this forum but could't get it working :-(
Jup
 
Posts: 6
Joined: Sun Jan 06, 2013 10:57 am

Re: Beginners Questions Sun Jan 06, 2013 3:58 pm • by a_freyer
You're going to have to provide a lot more information to get a useful answer. Lets start with some basics:

What indicates that a folder is COMPLETE?
What have you tried that hasn't worked?
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Beginners Questions Mon Jan 07, 2013 8:26 am • by Jup
Sorry for being unclear. I would like to process and file my downloads. All of my downloads will go into subfolders. One subfolder per download. I would like to process the folder (import into iTunes, ...) and then copy the folder into my archive main folder on my NAS/external device.

Variant A
If I download something, let's say an album with mp3 songs then there will be a folder with mp3 files within it but sometimes there will be a playlist (m3u) or covers (jpg, png) too. The downloader use a temp folder and moves it after completing the download to another folder. I can use hazel to move this "complete" folder. But I would like to check whether it's an album (there is at least one mp3 file in it) or a movie (there is at least one mpg file in it). And depending on that decision move the whole folder (with everything in it) somethere else. Now Hazel will react on a processing rule and imports the mp3 files into iTunes....
Download->Copy to Folder depending on type->process by watching the target folders

Variant B
Hazel will check the download folder and process the files by their extensions. After processing all (appliciable) files within the folder, hazel should move the whole folder (with all and not just only the processed files) somethere else.
Download->Process by type/extension -> move folder somethere else

I have collected some hints and code snippets in the forum but cannot put them together. I can determine whether a folder contains specific files. I know how to reset the parent folder. I can process all files within a folder by type. But I don't understand how to setup a chain of processing rules or how to combine all the things to get it working.
Jup
 
Posts: 6
Joined: Sun Jan 06, 2013 10:57 am

Re: Beginners Questions Mon Jan 07, 2013 4:00 pm • by Mr_Noodle
Can't you have the rule match using the "any sub-files" target? Something like:
Code: Select all
If (all) match for (any sub-files)
    <match against mp3's or m3u's, etc.>
Then
  Move item

That will move the folder based on whether it contains files matching whatever conditions you specify.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Beginners Questions Fri Jan 11, 2013 2:29 pm • by Jup
Thank you for your help. I managed to create the rule successfully. This and the great support convinced me. I purchased a license today.

(How do I post the rule in 'your' way?)
Jup
 
Posts: 6
Joined: Sun Jan 06, 2013 10:57 am

Re: Beginners Questions Fri Jan 11, 2013 2:34 pm • by a_freyer
Jup wrote:Thank you for your help. I managed to create the rule successfully. This and the great support convinced me. I purchased a license today.

(How do I post the rule in 'your' way?)



The way that Mr_Noodle and I typically post the text of rules is by using the [-code-] tag surrounding spaced text like you see below. I added the dashes so that the forum would show it unformatted:

[-code-]
if (all) of the following conditions are met for (the file or folder being processed):
[put five spaces here]whatever you want

Do the following to the matched file or folder:
[put five spaces here] whatever you want
[-/code-]

Formatted:

Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     …

Do the following to the matched file or folder:
     …
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Beginners Questions Sun Jan 13, 2013 2:38 pm • by Jup
Thank you, but I rather asked to learn how to get that "speaking text" at all. Exporting the rules will create some kind of internal file not human readable text.
Jup
 
Posts: 6
Joined: Sun Jan 06, 2013 10:57 am

Re: Beginners Questions Mon Jan 14, 2013 1:10 pm • by Mr_Noodle
I just typed it out. There's no way to auto-generate that right now.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support