Page 1 of 1

Complicated Setup, Please Help!

PostPosted: Sun Jun 12, 2016 11:39 am
by MadMoneyBanks
Im using the trial version of hazel right now, but if someone has a perfect solution to how to accomplish what I need, Ill buy immediately before the trial ends. Ok, this may get confusing, but Ill do my best to explain...

I record gameplay from my ps4 with an elgato HD60, and the software for it puts each saved .mp4 gameplay file in a new folder with two .json files, a .info file, and a .png file. I want to move the .mp4 file into its own folder, and delete the newly created folder (that the .mp4 file was inside), along with the remaining content inside it. I need this to be done automatically to each folder that the software creates after Ive saved a gameplay.

By deleting the entire file after the .mp4 file is moved elsewhere, the software will just create the file (with the same exact name) again with a new .mp4 file when I save a gameplay, and I want hazel to repeat the same process every time it does.

I save over 100 gameplays a month, and I have never found use for the extra files the software creates, so they can go into the trash. The elgato HD60 software cannot do this itself unfortunately (Trust me I've checked)... But because the software cannot do it itself, the parent file that contains all my saved gameplays is loaded with hundreds of folders that take a very long time to sort through to find what I need.

If anyone tells me a solution, I think Ill cry from happiness because it will save me hours of sorting each month. :D

Re: Complicated Setup, Please Help!

PostPosted: Mon Jun 13, 2016 12:21 pm
by Mr_Noodle
Check out this article on getting Hazel to go into subfolders: https://www.noodlesoft.com/kb/going-into-subfolders/

In addition to that, you will need to create the rule to match and move the movie files.

Then, you need another rule to throw away the folder. You can use a nested condition as shown here: https://www.noodlesoft.com/kb/how-to-cr ... onditions/

The nested condition can check if the folder doesn't have an mp4 file under it and throw it away in that case.

Give the above a try and report back if you run into problems with it.

Re: Complicated Setup, Please Help!

PostPosted: Tue Jun 14, 2016 8:09 am
by MadMoneyBanks
Ok, I wish I was more computer savvy when it came to stuff like this, but I took a screenshot that shows exactly how my normal file structure looks like: https://gyazo.com/5151613bf7516ce071f642318aa4f425

I am still doing something wrong, but I can't figure it out. Ive looked at the links you provided, and Im still not sure how to set it up perfectly.

If your looking at the screenshot, you'll see that each folder the software creates is called "Playstation" and it adds a number to each consecutive file it saves. It puts the .mp4 file along with a bunch of useless files into that folder. All the folders sit inside the "Game Capture HD Library" folder.

I need to get the .mp4 files to move into the "Game Capture HD Library" folder, then I need the folder it came out of, along with the remaining useless files that are still inside it, to be put into the trash.

Is there any way you could send me a screenshot of the best way to structure Hazel to accomplish this?

Accomplishing this would save hours each week, and it would be well worth the money to never have to deal with the stress of opening hundreds of folders to find the file I need.

Thanks for the reply and thank you for responding so quickly!

Re: Complicated Setup, Please Help!

PostPosted: Tue Jun 14, 2016 1:25 pm
by Mr_Noodle
Can you post what rules you have so far? The article I sent should at least have the rule to go into subfolders. You should also have a rule to move the movie files. Both of those should be simple to set up (the first one is already done for you). That will at least get you most of the way there. If you can't get it working then please post what you have at that point.

Re: Complicated Setup, Please Help!

PostPosted: Tue Jun 14, 2016 10:38 pm
by MadMoneyBanks
Heres everything I have so far, but Its not deleting the folder and moving it to the trash. The .mp4 file does seem to be getting moved fine though.
#1: https://gyazo.com/912cb71c87344437a0b37189cb3d407e
#2: https://gyazo.com/ac5a9d33a17af50c3b7aa88043211f33
#3: https://gyazo.com/3db1aaea1f1907166529ef580d7e624c
#4: https://gyazo.com/40dc4e6411faecd3d0e82bfbb852b305

What am I doing wrong?

Re: Complicated Setup, Please Help!

PostPosted: Wed Jun 15, 2016 12:12 pm
by Mr_Noodle
For one, the last rule will never match because all folders end up matching the first rule. But, you don't want it to throw away the folder too early either. That's where the nested condition comes in. See the previous link. You can set up the nested condition to match a folder which doesn't have any mp4 files in it.

Once you have that set up, you'll also want to move that rule before the subfolder rule.

Re: Complicated Setup, Please Help!

PostPosted: Wed Jun 15, 2016 12:37 pm
by MadMoneyBanks
Ok, I moved it to the top:
https://gyazo.com/314ba992aec72a32d56cb1fdbe980d1a
That made it put the files with the name PlayStation in it, into the trash. But the conditions I set up did not work. It threw out a file that had a .mp4 in it. Heres what I setup as conditions:
https://gyazo.com/39e185be554ff08730c4b797521729be

I can't find the correct way to make it not throw away the .mp4 files with the folder. Any ideas?

Re: Complicated Setup, Please Help!

PostPosted: Wed Jun 15, 2016 6:53 pm
by Mr_Noodle
In that rule, all those conditions are at the top level, and not under the nested condition. Try dragging them up so that they indent under the nested condition. Also, you want to change the target to "all of its sub-files", not "the current file". You want those conditions to apply to the sub-files of the folder and not the folder itself.

Re: Complicated Setup, Please Help!

PostPosted: Thu Jun 16, 2016 12:28 am
by MadMoneyBanks
It worked! You did it! Thank You So Much! I can't believe its working, I'm so excited. I think I'm gonna make a video of it after I buy it and put it on my YouTube channel www.YouTube.com/MadMoneyBanks. I think so many people would benefit off of this. Setting it up this way will save me so much time on finding my files, and organizing them :D <3