Append .txt to .md File

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

Moderator: Mr_Noodle

Append .txt to .md File 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)
Mathias
 
Posts: 2
Joined: Mon Nov 16, 2020 1:18 pm

Re: Append .txt to .md File 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.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support