Tagged Questions
1
vote
3answers
129 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 ...
2
votes
3answers
190 views
How to determine the absolute path to a file in a shell script
I am writing a generic script that can get passed both absolute and relative (to the current working dir) paths to existing files.
I need a fail-safe way to turn all those passed paths into absolute ...
1
vote
2answers
248 views
Display dialog from command line (like xmessage does)
Background
I'd like to be able to display a notification window in OS X from within a script. The script will be running in background, so the notification should not go to the terminal but instead ...
7
votes
2answers
2k views
What is the difference between .command, .tool, and .sh file extensions?
I saw a couple of questions about executing command line scripts? I saw that the .command and .tool extensions were mentioned. I have always used .sh. What is the difference between these different ...
4
votes
1answer
10k views
How do I remove a user via single user mode in 10.7?
I occasionally will setup a user's machine that has been in for repair beyond the simple re-install of the OS. For example: install a new hd, install the OS, create a user, install updates and then ...
5
votes
5answers
2k views
How to send an email from command line?
How to send an email from command line or script? I want to be able to run the script programmatically by passing the receiver and the message.
2
votes
1answer
317 views
Why setting image as its own icon with sips result a blurred icon? Are there any alternatives?
I've successfully changed icons using the procedure described in an another question: Changing or setting a file or folder icon programmatically. Either my sips (or Finder) got broken afterwards or I ...
9
votes
4answers
3k views
Changing a file or folder icon using the Terminal
How can I change or set the icon for a file or folder, in the terminal, do I need to use a scripting language?