Right-click the file and select Compress "Cbaoddq.txt" .
If you are trying to automate this process "as a text" (scripting), here are common methods:
Open TextEdit , type your content, go to File > Save , and choose Plain Text (.txt) as the format.
Right-click your Cbaoddq.txt file, select Send to , and click Compressed (zipped) folder .