Help with deleting downloaded file after opening

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

Moderator: Mr_Noodle

Help with deleting downloaded file after opening

Postby mitchmeister » Fri Apr 27, 2012 8:07 pm

Hi

I'm trying to do something simple that used to work with 2.x but doesn't anymore with 3.x.

After downloading a specific file type I want a rule (or 2) to open the file in an app & then once it has been opened to delete the file. I used to do this with a single rule with 2 steps like http://cl.ly/GDbc but this doesn't work reliably anymore as it seems that sometimes the file is trashed before the app has got a proper hold of it.

So I broke it into 2 rules: First open the file & then delete the file once I'm sure the file has been opened http://cl.ly/GDkO. I have tried a number of different permutations on the condition "Date Added", "Date last opened", "Date created", but can't seem to get it to work.

Appreciate any advice.
mitchmeister
 
Posts: 4
Joined: Fri Apr 27, 2012 7:46 pm

Re: Help with deleting downloaded file after opening

Postby Mr_Noodle » Mon Apr 30, 2012 9:59 am

If it worked under 2.x, it was a fluke. When Hazel tells the app to open the file, there is no way for it to know that the app has finished. Hazel basically sends it off and continues.

Your best bet is to try using Date Last Opened. Something like date last opened is in the last x minutes or date last opened is after date last matched.
Mr_Noodle
Site Admin
 
Posts: 2914
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Help with deleting downloaded file after opening

Postby mitchmeister » Thu May 03, 2012 11:34 pm

I tried http://cl.ly/GNbF & it doesn't work. Any other suggestions?
mitchmeister
 
Posts: 4
Joined: Fri Apr 27, 2012 7:46 pm

Re: Help with deleting downloaded file after opening

Postby Mr_Noodle » Fri May 04, 2012 11:57 am

How is it not working? Is it not throwing away the file at all or is it throwing it away too late? Also, check the date last opened on the file to make sure it's what you expect. It's possible it's not getting updated when the app opens it.
Mr_Noodle
Site Admin
 
Posts: 2914
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Help with deleting downloaded file after opening

Postby mitchmeister » Sat May 05, 2012 4:24 am

Not working in that it doesn't move the file to the trash.

This is the file info - http://cl.ly/GOxZ

I still can't work out why this isn't working.

If I manually run the rules it moves the file to the trash.

A bug?

(incidentally this is the rule order - http://cl.ly/GPGL)
mitchmeister
 
Posts: 4
Joined: Fri Apr 27, 2012 7:46 pm

Re: Help with deleting downloaded file after opening

Postby Mr_Noodle » Tue May 08, 2012 2:47 pm

Looking at your rule again, you want it to be "NOT in the last 5 minutes". I think you want a delay before it starts throwing files away.

How does it look in the preview? I can't tell but it's possible it's matching the other NZB rule before it. There's a sticky thread about diagnostics that you should read as well.
Mr_Noodle
Site Admin
 
Posts: 2914
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Help with deleting downloaded file after opening

Postby mitchmeister » Thu May 17, 2012 1:57 am

I finally got it to work with this logic

Image
mitchmeister
 
Posts: 4
Joined: Fri Apr 27, 2012 7:46 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests



Copyright © 2006-2012 Noodlesoft, LLC, All Rights Reserved. Mac and the Mac logo are trademarks of Apple Computer, Inc., registered in the U.S. and other countries.