Wow, keep up the great work! I made compression work on linux and added a github action to build for both mac/linux https://github.com/thecloudexpanse/sit/pull/3
Thanks! Appreciate your contributions. I haven't been testing my changes on Linux to this point, so the github action will certainly help.Wow, keep up the great work! I made compression work on linux and added a github action to build for both mac/linux https://github.com/thecloudexpanse/sit/pull/3
tell application "Finder"
--Creating an array for selected files
set SelectedItems to {}
-- Create an array for the POSIX list of paths
set POSIXList to {}
-- We transfer the paths of all selected files and directories to the array
set SelectedItems to selection as alias list
-- We go through each chosen path
repeat with SelectedItem in SelectedItems
-- We take the path in quotation marks and convert it to POSIX format and add a space
set end of POSIXList to (quoted form of POSIX path of SelectedItem) & " "
end repeat
-- Determine the root by the first selected file or directory
set RootFolder to POSIX path of ((container of SelectedItem) as alias) as text
-- Set the name of the archive
set ArchName to quoted form of (RootFolder & "Archive.sit")
-- SIT It!
do shell script "/usr/local/bin/sit -o" & space & ArchName & space & POSIXList
end tell
Stuffit 1.5.1 or 5.x archive?You can have this functionality without having StuffIt Deluxe 16 installed.
Thanks! I had noticed that my quick-and-dirty script was only handling one selection, and really needed to iterate over the list as you have done.@thecloud I have some similar solutions for shortcuts on AppleScript, so I adapted them quickly enough.