Rarog888 wrote:
Is there an easy way to do this on Tahoe without using the Terminal?
It depends on how you define "easy".
Tahoe definitely does have native support for RAR files, but only in the Terminal. You can create an AppleScript that does it. Here is one example:
on open theFiles
repeat with aFile in theFiles
set filePath to POSIX path of aFile
set fileName to name of (info for aFile)
-- Check if it's a RAR file
if fileName ends with ".rar" then
try
-- Extract based on file type
if fileName ends with ".rar" then
do shell script "tar -C ~/Downloads/" & " -xf " & filePath
end if
display notification "Successfully extracted: " & fileName with title "RAR Extracted"
on error errMsg
display dialog "Error extracting " & fileName & ": " & errMsg buttons {"OK"} default button 1 with icon stop
end try
else
display dialog "Not a supported RAR file: " & fileName & "
Supported formats: .rar" buttons {"OK"} default button 1 with icon caution
end if
end repeat
end open
Unfortunately, AppleScript is a bit strange. This is one area where I have no qualms about using an AI. There's no way a software developer like myself with only a few decades of professional experience could construct such a complicated script. And I'm not making some kind of joke here. I literally can't do this. Even the AI's script wouldn't run. There was nothing I could do to get it to give me the parent folder of the dropped in item. So I had to hard code it to ~/Downloads and that worked. I had assumed the problem was due to some sandboxing restriction, but that would have definitely blocked a hard-coded path like this.
But I digress. I thoroughly despise AppleScript. I would have written a stand-alone app instead. But whatever.