If I right click a file and I compress it I obtain a file.zip. Is it possible to set right click-->compress to produce a file.tar.gz as output? I always have to do it through terminal but many times I'd rather do it with a right click especially when I'm already in the finder looking at the folder
Asked
Active
Viewed 499 times
1
-
3This is basically a duplicate of "How do I create a .tgz from Finder using Archive Utility?" ("tgz" is short for "tar + gzip"). Unfortunately, that doesn't have an answer (and I don't think there is one) other than using third-party utilities or creating an Automator Service. – Gordon Davisson Jun 07 '20 at 16:06
-
https://apple.stackexchange.com/questions/393270/im-trying-to-make-a-service-to-archive-a-folder-using-tgz-i-cant-get-this-to – anki Jun 08 '20 at 06:41
1 Answers
1
You can try to write a unix shell script where your commands are to tar the selected files then run gzip on it.
Then you can make this a service and save it at ~/Library/Services
. Then enable it via system preferences > Keyboard > shortcuts > Services.
- Creating System-Wide Keyboard Shortcut To Launch Applications
- How do I run my automator service without opening automator?
Then you can select a file and right-click on the selected file. At the bottom of the right click menu, a section for Services appears which has your services. Select your new service and that should do the job.
Alternatively, it can be found in Finder menu > Services.
-
Thank you, I'll try it as soon as I have some spare time and eventually check your answer! – AnOrAn Jun 08 '20 at 20:51