Mr_Noodle wrote:In that case, you'll need to use a match pattern (check the manual for more details). You would create a custom attribute for the student name and use that in a Rename action.
I cannot figure this out. I am BRAND NEW to applescript and have set up very simple Hazel rules. I can't figure out how to pull the name out of the name string.
I figured out how to make the custom attribute name.student = it is in the name string after the _last.first_
Letter to the First Year STILL Due 5 28_
last.first_attempt_2020-05-29-11-20-20_letter to first years.docx
Everything to the word attempt is the same pattern
Letter to the First Year STILL Due 5 28_last.first_attempt_ <<<same for every1 differs by student >>>> 2020-05-29-11-20-20_letter to first years.docx
The last name and first names vary by letter count. So I don't know how to account for that
I have a screen shot can't get it to display
[img]/Users/richwhitney/Desktop/Hazel%20Custom%20attributes.png[/img]
I get it to preview for kind. for starts with.
How do I get it to realize the last.first name?
I can't follow the applescript explanation either.
Thanks