Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
1
votes
2
answers
3747
views
How to make macOS archive RAR and unRAR files in Finder with automator and shell script?
I have rar and unrar installed in `/usr/local/bin/`. I need: 1. In Finder: to archive selected files and folders with .rar extension to the same folder. Is it possible to make it through right click and context menu? Or with automator services? 2. In Finder: Unrar selected archives to the same folde...
I have rar and unrar installed in
/usr/local/bin/
. I need:
1. In Finder: to archive selected files and folders with .rar extension to the same folder. Is it possible to make it through right click and context menu? Or with automator services?
2. In Finder: Unrar selected archives to the same folder in Finder with context menu.
Is it possible with automator and shell script?
dizz610382
(13 rep)
Apr 24, 2020, 10:27 PM
• Last activity: Oct 7, 2024, 02:52 PM
20
votes
6
answers
36396
views
Tool for creating .rar files on the Mac?
Is there any good, free program for OS X that can create RAR files? Preferably with a GUI. It seems there are [plenty of options][1] for *extracting* RAR files, but not that many for compressing them... [1]: https://superuser.com/questions/52124/whats-a-good-way-to-extract-rar-files-on-the-mac
Is there any good, free program for OS X that can create RAR files? Preferably with a GUI.
It seems there are plenty of options for *extracting* RAR files, but not that many for compressing them...
Jonik
(6923 rep)
Sep 28, 2010, 07:49 AM
• Last activity: Aug 13, 2024, 12:17 PM
7
votes
1
answers
445
views
Why does The Unarchiver need to make a network request when unzipping a file?
As shown LuLu detects a connection, and despite blocking it, the rar file was unzipped. [![Screenshot of LuLu][1]][1] [1]: https://i.sstatic.net/Xyqu3.png
As shown LuLu detects a connection, and despite blocking it, the rar file was unzipped.

user95432
(173 rep)
Dec 30, 2022, 05:14 PM
• Last activity: Dec 30, 2022, 07:52 PM
0
votes
1
answers
3426
views
Best Torrent Client that supports auto unrar
I used to be a PC boy and now been in to Macs for a few years. I am after a good torrent client that supports auto unrar and move on completion. Anybody know of anything like this? Google doesn't seem to turn up much. Thanks Lee
I used to be a PC boy and now been in to Macs for a few years. I am after a good torrent client that supports auto unrar and move on completion.
Anybody know of anything like this? Google doesn't seem to turn up much.
Thanks
Lee
Lee
(103 rep)
Aug 8, 2011, 09:01 AM
• Last activity: Oct 9, 2020, 09:36 AM
2
votes
1
answers
2135
views
How to make macOS open RAR archive in Terminal using unrar on double-click?
I want to make macOS open RAR files: On double-click macOS should open Terminal with command `unrar x /path/filename.rar` Is there any way to do this?
I want to make macOS open RAR files: On double-click macOS should open Terminal with command
unrar x /path/filename.rar
Is there any way to do this?
user364122
Feb 29, 2020, 09:10 PM
• Last activity: Apr 24, 2020, 10:04 PM
0
votes
1
answers
210
views
Removing Files after Successful Extraction unrar rm shopt globstar
shopt -s globstar for f in **/*.rar; do dir=`dirname "$f"`; unrar e "$f" "$dir" && rm -frv "${f::-2}*"; done From echoing out testing the rm command, the file is the correct path. I don't receive any errors about an incorrect path or anything. I know there are other methods to use find, but that wou...
shopt -s globstar
for f in **/*.rar; do
dir=
dirname "$f"
;
unrar e "$f" "$dir" && rm -frv "${f::-2}*";
done
From echoing out testing the rm command, the file is the correct path. I don't receive any errors about an incorrect path or anything. I know there are other methods to use find, but that would be pointless and use extra cpu cycles this should be working from everything I found. Any ideas on how to use the rm command properly?
user316523
Jan 8, 2019, 02:29 AM
• Last activity: Jan 8, 2019, 04:12 AM
0
votes
1
answers
3399
views
Program Icons bounce, but won't open on Apple MacBook Pro
I just got an Apple MacBook Pro that is 5 years old and I have no idea how to use it or if something is wrong with it. I have 10.9.5 and it's supposed to be compatible and it didn't work. Since then, I've gotten 3 more programs from a total of 4 different places and they all do the same thing, so th...
I just got an Apple MacBook Pro that is 5 years old and I have no idea how to use it or if something is wrong with it. I have 10.9.5 and it's supposed to be compatible and it didn't work. Since then, I've gotten 3 more programs from a total of 4 different places and they all do the same thing, so this isn't a problem just with one program or place. 2 of them had to be unzipped, then there was a rar file inside them that had to be extracted. The other 2 programs were marked7z; I unzipped them, then used the rar/zip extractor I got from the Apple store(i've used 4 different ones). Everything seems to work fine until I try to open the programs. I click or double-click on them, they say verifying, the bar fills, then the icon just bounces up and down on the desktop dock and the programs never open. I've uninstalled and erased everything, then downloaded them again and still same problem. They all just bounce, but never actually open. After waiting 5-10 minutes, I right-click and select force quit. I've inspected contents and everything looks fine; hash is correct; I can't figure out what's wrong. One of the programs has a .dmg and an .iso and when I click that them, they both say it isn't recognized. Am I doing something wrong with the extract/archive?
I've never had an Apple before, but it seems like it should be easier than this to just download install and open a program.
user7325657
(9 rep)
Dec 27, 2016, 07:43 PM
• Last activity: Oct 27, 2018, 06:08 PM
0
votes
1
answers
1297
views
How can I make an Automator service run a Terminal and display the output?
I'm using Automator to run a shell script (Rar selected files) as a 'Service', so that I can just right click a folder and select the service. It works fine, but i've added verbose and testing (to see the progress and test results) so I need to see the output of the Terminal window to make sure the...
I'm using Automator to run a shell script (Rar selected files) as a 'Service', so that I can just right click a folder and select the service. It works fine, but i've added verbose and testing (to see the progress and test results) so I need to see the output of the Terminal window to make sure the archive is ok. Is there a way to see the output in real time? or to take it an extra step echo the results?
here's the script that works in automator but the output is silent.
on run {input, parameters}
set nbFiles to count input
if nbFiles = 0 then
display dialog "No files selected!" buttons {"OK"} default button 1
return
end if
tell application "Finder"
set archiveDir to (container of (item 1 of input) as string)
if nbFiles = 1 then
set archiveName to (name of (item 1 of input) as string)
else
set archiveName to "archive"
end if
if exists file (archiveDir & archiveName & ".rar") then
set i to 2
repeat while exists file (archiveDir & archiveName & "-" & i & ".rar")
set i to i + 1
end repeat
set archiveName to archiveName & "-" & i
end if
set archiveDir to quoted form of POSIX path of archiveDir
set archiveName to quoted form of (archiveName & ".rar")
set listFiles to " "
repeat with i in input
set listFiles to listFiles & quoted form of ("." & POSIX path of (name of i as string)) & " "
end repeat
end tell
do shell script "cd " & archiveDir & "; rar a -ol[a] -mt8 -m5- -y -s -m4 -t " & archiveName & listFiles
return input
end run
THANKS!!
phattydee
(1 rep)
Jan 24, 2018, 02:04 PM
• Last activity: Jan 24, 2018, 02:22 PM
0
votes
1
answers
79
views
View/extract embedded archives with RAR
So I have something like this: [![enter image description here][1]][1] I got this with `rar l file2.rar` This basically is one archive inside of another. Is there any way to list/extract the contents of `file.rar` that is inside `file2.rar` with RAR for terminal without extraction? Note: I am using...
So I have something like this:
I got this with

rar l file2.rar
This basically is one archive inside of another.
Is there any way to list/extract the contents of file.rar
that is inside file2.rar
with RAR for terminal without extraction?
Note: I am using RAR 5.50 on macOS High Sierra.
COOL_IRON
(11 rep)
Nov 29, 2017, 11:01 AM
• Last activity: Dec 29, 2017, 01:31 PM
2
votes
3
answers
5689
views
Find/Unrar/Delete Script
I'm a PC convert, and quite novice when it comes to shell/bash scripting, but I really want to learn/understand more. My need: I need to be able to scan a folder, find any .rar files, extract the files in place, and delete the associated .rar afterwards. Each may also have the .r00, .r01, ... files...
I'm a PC convert, and quite novice when it comes to shell/bash scripting, but I really want to learn/understand more.
My need: I need to be able to scan a folder, find any .rar files, extract the files in place, and delete the associated .rar afterwards. Each may also have the .r00, .r01, ... files associated, so those need to be deleted afterwards as well.
Can someone help me figure out (and understand) how to write a script for this? The more comments, the better.
Jason
(123 rep)
Mar 25, 2013, 05:20 AM
• Last activity: Apr 22, 2014, 11:56 PM
3
votes
1
answers
1322
views
Problem with corrupt .rar file
I have a big file compressed in split `.rar` archives. There are 68 archives named .rar, .r01, .r02, etc., annd the problem is that `.r36` is corrupted resulting in an `Unexpected end of archive`. I've looked around and I have found nothing. There is no way to repair the file. And now my question is...
I have a big file compressed in split
.rar
archives. There are 68 archives named .rar, .r01, .r02, etc., annd the problem is that .r36
is corrupted resulting in an Unexpected end of archive
. I've looked around and I have found nothing.
There is no way to repair the file.
And now my question is if it's possible to *skip* the file. I mean, extract all files except the .r36
. The result should be a big file with a small part of it corrupted, but it doesn't matter.
Is that possible - to *skip* a file from extraction? Because my main problem is that all the apps I've tried stop the task when they find the error.
Manuel
(690 rep)
Nov 10, 2012, 05:39 PM
• Last activity: Apr 13, 2013, 11:00 PM
3
votes
2
answers
1057
views
Find which RAR file is bad
I have a RAR I downloaded made up of multiple files. When trying to extract it, it tells me the data is incomplete, something bad with one of the files. Considering I had to download multiple large files, is there a way to find out exactly which of the files I should re-download?
I have a RAR I downloaded made up of multiple files. When trying to extract it, it tells me the data is incomplete, something bad with one of the files.
Considering I had to download multiple large files, is there a way to find out exactly which of the files I should re-download?
nute
(2770 rep)
Aug 2, 2011, 10:45 AM
• Last activity: Apr 30, 2012, 12:34 PM
2
votes
2
answers
251
views
Using php5-rar to extract files with an RAR extension
Recently, I received a compressed file with an RAR extension from a colleague. Not being able to view it under MacOS, I went on to download the MacPort `php5-rar` thinking that it would solve my problem. I soon realized that this was not a utility, but an API for viewing, extracting and creating RAR...
Recently, I received a compressed file with an RAR extension from a colleague. Not being able to view it under MacOS, I went on to download the MacPort
php5-rar
thinking that it would solve my problem. I soon realized that this was not a utility, but an API for viewing, extracting and creating RAR files programmatically. Please correct me if I am wrong, since the only documentation I have been able to find on this MacPort thus far is an API reference manual.
By later browsing this SE, I discovered that there is another utility called [iUnarchive](http://www.iunarchive.com/) , which allows one to extract/view RAR files. As I am a bit ignorant when it comes to these things, if I were to download and install it, would it interfere with the php5-rar
MacPort that I installed earlier?
Furthermore, as iUnarchive appears to be a tool only for extracting/viewing files, is there an equivalent (free) tool under MacOS that can be used to create RAR files?
Bill
(225 rep)
Sep 23, 2011, 02:46 AM
• Last activity: Sep 23, 2011, 07:11 AM
5
votes
1
answers
4675
views
How can I choose to unrar with the default application?
I recently installed unrar for Mac Os X but i found it useless sometimes and bug-full. So i uninstalled unrar. Now if i open a .rar file, another application (VLC) open it. But i want the default unrar application to manage .rar files. How can i do that? If i select the "Open with" options and i loo...
I recently installed unrar for Mac Os X but i found it useless sometimes and bug-full.
So i uninstalled unrar. Now if i open a .rar file, another application (VLC) open it.
But i want the default unrar application to manage .rar files. How can i do that? If i select the "Open with" options and i look for that application in the applications folder i cant find it.
sh03
(1856 rep)
Nov 1, 2010, 01:05 PM
• Last activity: Nov 1, 2010, 06:04 PM
Showing page 1 of 14 total questions