|
|
tar bzip
I usually use tar -z or better yet tar -bzip to create zipped archives. Maybe some clever sole could write a clickable apple script that would take the highlighted folder in the finder and apply this action to it.
tar gzip apple script
here is a feeble but not quite working attempt at this
THIS DOES NOT WORK QUITE RIGHT. there are two problems. first frontWindowPath has a termnal "/" character which means I cant just concatenate ".tgz" to the end of it to create the archive name. some how I have to strip that tail "/" from the path name, but I dont know how to do this in applescript.the second problem is that it's overkill to fire up a new terminal window to do its job: but that's only because I dont know how to just execute a unix command within apple script directly. note that the "cd" command I execute is superfluous to the archive command. However it serves the purpose of testing to see if the directory you slected has an executable permission for you. the && comand guarentees that if the cd command fails the tar command is aborted. if this worked correctly--and it does not-- it should allow you to select a folder in the finder and click the apple script to archive it. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.13 seconds |
|