Adding New Files to Another Folder (from Google Drive)

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

Moderator: Mr_Noodle

I am new to Hazel, and I want to use it in this way.

1) Monitor a Google Drive Folder. The Drive folder is synced to my desktop using Drive File Stream.
---->The files in the drive folder are nested in subfolders (I am using Paperpile, which adds PDFs to subfolders based on the letter of the alphabet)
2) Anytime a new file is added to this drive folder, copy it to a folder on my desktop (I prefer to copy only the PDFs and not the folder structure)
3) If it has to bring the folder structure from Google drive, remove files from the subfolders and place them in the top level of the desktop folder
4) Move them to a location in DevonThink (I believe I can use folder actions for this)
5) Delete the files in the desktop folder

I tried setting this up but the first step failed. I set up a rule, "Date Added" is "Date Last Modified" and "Copy" to "Location". However, for whatever reason, it copies my entire Drive folder with thousands of PDFs. If I delete the PDFs from the copied location on my hard drive, it syncs them all again.

Please help.
Esilbe1
 
Posts: 4
Joined: Mon May 04, 2020 2:36 pm

Please see the troubleshooting guide here: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

If you want to match files the first time they appear, you need to do "Date added is after date last matched". And yes, the first time you run it, it will copy everything over since everything is new to Hazel.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Revisiting this workflow:

I have a folder with this structure that has 27 subfolders under one parent folder. I want to copy all the files from the 27 subfolders and move them to a new top level folder. I do not want the subfolders, only the files. How do I extract all the files and not the folder structure along with them?
Esilbe1
 
Posts: 4
Joined: Mon May 04, 2020 2:36 pm

You'll need Hazel to go into subfolders. Check the manual as there's a chapter on that there.

In addition to that rule, you'll need one to do the copy. By default, it will copy the files individually without maintaining the folder structure so that should do it for you.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support