hi,
i m unable to figure out how to create a bzip compressed file without folder structure. I need to compress files and enough.
tell application "Finder" to set nm to name of item 1 of (get the selection)
set target_file to choose folder
set target_file to quoted form of POSIX path of (target_file & nm & ".tgz" as text) --(path to home folder as text) & "Backup:"
set cmd to "tar -cf " & target_file & space & quoted form of POSIX path of pt & " | bzip2 -c " & target_file
do shell script cmd