multiple files one note to Evernote

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

Moderator: Mr_Noodle

multiple files one note to Evernote Wed May 11, 2016 1:23 pm • by zeroluck
Hello Everyone,

I am brand new to Hazel, and I am very interested in reducing some redundant filing. I run monthly reports for a group, some reports are specific to them, and a couple files are common to the group. I am trying to have hazel resolve the necessary steps to send all of this out for me, instead of one at a time and then file. I have the script for creating the evernote note, [thanks to your forum]. However I am working on the filing portion of this and seem to be hitting a wall.

My rule is structured as follows: (names are fictional...if they match you...sorry)

If ANY of the following conditions are met
[Any File]
[Name][contains][Steve Henderson]
[Name][contains][Sticker]

Do the following to matched file or folder
Run Applescript (this is were the evernote script runs)

Am I off base with how the rule is structured? The trial folder that I am running this rule in, has files with names that contain the above noted. Do the names need to be separate or can Hazel ID a file containing 'Steve Henderson' from "MonthlyOpenFileReport-SteveHenderson"
zeroluck
 
Posts: 2
Joined: Wed May 11, 2016 1:09 pm

Re: multiple files one note to Evernote Wed May 11, 2016 3:20 pm • by Mr_Noodle
What is the actual problem? One problem I see right off the bat is that this rule will match everything, because "any file" is always true and you have it set to match "any" condition. Basically, do not use "any file" unless it's the only condition.

Other than that, you'll have to describe what isn't working.
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: multiple files one note to Evernote Thu May 12, 2016 4:48 pm • by zeroluck
My apologies, for being unclear. The issue is that even with the removal of the "any file" condition the other two tests are NOT seeing the files/ text in a filename that contains the text I am looking for. The example that I gave at the bottom of my post with a file name 'MonthlyReportFileOpen-Steve Henderson' the rule does not see Steve Henderson in the file name? It should from what I can tell, but the rule fails in preview and also fails when I run it. The other file has the word 'Sticker' in the file name but I the two files I want hazel to grab have file names 'StickerTracker file' and 'MunicipalNameSticker Tracker'.

I want the rule to see any of the files in the folder that have 'Steve Henderson' in the filename and the files that have 'sticker' anywhere in the filename; to create a single Evernote note. One Evernote note with 2-3 files attached to it.
zeroluck
 
Posts: 2
Joined: Wed May 11, 2016 1:09 pm

Re: multiple files one note to Evernote Fri May 13, 2016 9:36 am • by Mr_Noodle
I'm not sure why the conditions aren't matching but to address the other issue, you can have a rule batch up multiple files together. The best you can do is have a rule match a folder and use that.
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support