Simple but strange problem

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

Moderator: Mr_Noodle

Simple but strange problem Sat Feb 08, 2014 11:48 am • by macmattias
I for this rule on a folder:
1) Based on certain conditions based on the files in the folder download a file form internet. Works.
2) Move original file. Fails.
3) Move Download file. Works.

Why is step 2 failing?
Any suggestions?

I should add that the original file is moved into this folder by another Hazel rule.
macmattias
 
Posts: 9
Joined: Sat Feb 23, 2013 5:59 pm

Re: Simple but strange problem Mon Feb 10, 2014 2:03 pm • by Mr_Noodle
Please do not post questions in the Tips forum. There's a sticky at the top telling you not to do this.

As for step 1, what is it? There's no built-in action to download files so I need more info on what you are doing here. Also, not sure what the "original" file is in relation to the "Download" file.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Simple but strange problem Tue Feb 11, 2014 2:38 am • by macmattias
Sorry! Will not do that again.
I thought I needed tips not support. :)

I run an shell-script based on the name on the file in the directory.
That shell-script downloads a XML-file, then I try to move the original file, fails, and then I move the XML-file, success.
macmattias
 
Posts: 9
Joined: Sat Feb 23, 2013 5:59 pm

Re: Simple but strange problem Tue Feb 11, 2014 4:00 pm • by Mr_Noodle
Can you post the script and rule? I'm still not sure what you mean by the original file here or how you are referencing it or the xml file.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Simple but strange problem Wed Feb 12, 2014 2:11 am • by macmattias
Here you go!

Image

Image

Image

Image

So it is the Move PDF that fails.
macmattias
 
Posts: 9
Joined: Sat Feb 23, 2013 5:59 pm

Re: Simple but strange problem Wed Feb 12, 2014 4:15 pm • by Mr_Noodle
Some of those screenshots are too small but I'm guessing the problem here is you have things split up among separate rules. Understand that only one rule can match a file so the later rules won't mean anything if the first one matches the file first. If you want several operations to work on the same file, then just combine them as multiple actions within a single rule.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Simple but strange problem Tue Feb 18, 2014 3:04 am • by macmattias
Yes I know that but rules does not invoke themselves on the same file twice.
Oh wait... I have a rule on the parent folder that moves the pdf-file into the folder where the download and move rules are placed. So I need to have one rule ro rule them all?
macmattias
 
Posts: 9
Joined: Sat Feb 23, 2013 5:59 pm

Re: Simple but strange problem Tue Feb 18, 2014 4:58 pm • by Mr_Noodle
I'm not following you on that last bit. Can you elaborate (and maybe post more legible screen shots)?
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support