Hi.
I have Firefox set to download all files to a specified download folder (so it doesn't ask me where to download each and every time).
I have Hazel monitoring the Firefox download folder and I put a rule to move pdf files to a documents folder.
The result is that if Hazel springs into action during the download then the download is botched. This sometimes results in a Firefox error message and sometimes results in a bad file (without a Firefox warning).
When I look carefully at what is happening I notice that Firefox displays a variety of different behaviors during a download:
Sometimes it creates two files, one with the downloaded file's name and another with a .part extension. The second file is removed when the download is complete. When this occurs everything goes smoothly. (I believe Hazel uses this scheme to avoid yanking the file prematurely)
Most of the time, Firefox creates a temporary file with a random name, preserving the pdf extension. This temporary file is renamed when the download is complete. In this case, Hazel recognizes the extension and usually yanks the file away while the download is in progress, resulting in a Firefox error.
One possible workaround is to add another rule requiring that the file's last modified date is not in the last couple of minutes. This solution has some drawbacks. First, the specified time may not be long enough to complete the download and once the download is complete I wouldn't know where to look for it (in the downloads folder or the documents folder).
I tried to tweak Firefox into always using the .part scheme but failed (adding a FlashGot extension didn't help. Nor did upgrading to Firefox 2.0.0.1).
At the moment I'm setting the delay to be greater than one day so my documents folder is more of a "storage" folder, but this is not what I originally wanted.
Ideas anyone?