Page 1 of 1

Append .txt to .md File

PostPosted: Fri May 14, 2021 11:21 am
by Mathias
Is something like this possible
Looking for some hints so I can figure it out. Discovery is fun.

Watch folder for .txt file
Append contents of found .txt file to a .md file in same folder
Delete .txt file

Notes
Name of .txt file varies each time
Name of .md file varies each day (Daily journal YYYY_MMDD)

Re: Append .txt to .md File

PostPosted: Mon May 17, 2021 10:52 am
by Mr_Noodle
Hazel does not have any built-in actions to modify a files contents. For that, you will most likely need an AppleScript or shellscript to do what you want. With a shellscript, you should be able to use the 'cat' command.