Moving attachments of one email

Hello guys,
I'm very new to Hazel and Applescript and currently my rules are pretty easy. Today I got a nice idea for an automation:
I often get emails with a lot of attachments with different names and extensions. I save them to my download folder and often have to
move them to a project folder. The trouble starts where I have to remember which file where linked to which email and sometimes its a very annoying task.
What I would like to have is that when i save multiple attachment at onces that hazel creates a folder named by the email sender (denoted in the source when i press apple+i on the file) and move all attachments belonging to that mail into it.
Okay, so here I am with no clue how to realise that. I am pretty sure i need a bit of applescript because of the general approach (not a specific email) but how to start? What should be scripted, what is Hazel's task?
I am very grateful vor some advices, similar scripts or code snippets!
best regards from germany
m0mo
I'm very new to Hazel and Applescript and currently my rules are pretty easy. Today I got a nice idea for an automation:
I often get emails with a lot of attachments with different names and extensions. I save them to my download folder and often have to
move them to a project folder. The trouble starts where I have to remember which file where linked to which email and sometimes its a very annoying task.
What I would like to have is that when i save multiple attachment at onces that hazel creates a folder named by the email sender (denoted in the source when i press apple+i on the file) and move all attachments belonging to that mail into it.
Okay, so here I am with no clue how to realise that. I am pretty sure i need a bit of applescript because of the general approach (not a specific email) but how to start? What should be scripted, what is Hazel's task?
I am very grateful vor some advices, similar scripts or code snippets!
best regards from germany
m0mo