A collection of commands that may be from a CLI Shell, or programming language such as AppleScript, which are executed in order with limited iteration, usually as a way of automating actions or events.
2
votes
1answer
1k views
How to: Create a playlist with full albums for which one (or more) of its contained tracks has a 5 star rating?
I am looking for a tool/script/javascript to run within windows against my iTunes database that will produce a playlist of "all albums for which I have given five stars to any one song."
I can easily ...
3
votes
2answers
2k views
How can I enable SSH without using the gui or apple script on snow leopard?
A while back here How can I enable internet sharing without using the gui or apple script on snow leopard? I asked if any one knows how to enable Internet sharing without using GUI or apple script, I ...
2
votes
3answers
1k views
Opening a terminal window to a specific directory from a bash script
How can I write a bash script in Mac OS X that opens a Terminal window in a specific directory? I'd assume something like:
open /Applications/Utilities/Terminal.app
But that does nothing (maybe ...
1
vote
4answers
364 views
opening an app in a shell script with sudo
I'm trying to open an app that listens to port 25 within a shell script. In order to listen to port 25, I need to run the app with sudo. So I tried the following:
sudo open appThatNeedsPort25
It ...
7
votes
1answer
4k views
How do I modify Word 2011 for Mac so I can see tracked changes inline and notes simultaneously?
Background:
In Word 2011 for the Mac, it's possible to view tracked changes inline -- that is, see the changes made on the screen within the text itself, as opposed seeing them in a balloon off to ...
2
votes
2answers
1k views
Automatically press a key every 60 seconds
Is it possible via Automator, an app, applescript, etc. to automatically press a key (i.e. "g") every 60 seconds?
5
votes
6answers
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.
1
vote
2answers
107 views
Scripting environment setup
When I start a session programming on my macbook pro, I have a bunch of apps I'd like open and ready:
DevNull smtp java server (run from terminal with java -jar DevNull.jar)
Terminal shell in the ...
2
votes
1answer
2k views
how to send scheduled mails with Mail?
I would love to send mails in my apple mail scheduled!
What is the most comfortable way to do that?
only method i found: http://homepage.mac.com/aamann/Mail_Scripts.html
(but this is quite tricky + ...
2
votes
1answer
318 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 ...
3
votes
3answers
1k views
Programmatically/Script-atically changing the default Open-With setting
Is there a way to change what app opens a file type programmatically/with a script?
Basically, sometimes I'm working on a web site, and I want to set all web files to open with a text editor (*.php, ...
2
votes
1answer
632 views
Why won't wget work with cron?
I've been using the bashpodder script (http://lincgeek.org/bashpodder/) recently, and while the script works beautifully when I use it in the command line, the crontab I created for it doesn't work at ...
2
votes
6answers
1k views
Center Window on Screen
I'm creating a few screen casts and wanted to exactly center my windows in my screen. Any good way to do this on the Mac? I found an Apple Script example (and a few linked screens) but none of them ...
0
votes
2answers
4k views
Automator choose finder folder and run shell script
I've got a simple shell script that I would like to incorporate into an automator workflow. I just need to double click the application , pick a finder folder and run the command. At the moment it is ...
1
vote
2answers
547 views
How do I use a keyboard shortcut to execute a shell script I wrote, passing the file selected in Finder as an arg?
I suppose you could have it pass in whatever was selected in general in any app (such as text highlighted in a web browser).
5
votes
3answers
6k views
Are there Greasemonkey scripts for Safari?
There's the wonderful Greasemonkey to run user-defined JavaScript on web pages.
Is there such a thing as Greasemonkey for Safari? Or would one instead write a Safari Extension to customize behavior ...
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?
6
votes
4answers
3k views
Checking for folder/file changes using Automator?
Is there there a way to check a folder/file for changes (includes adding files, deleting files, changes in files,...). The 'Folder action' in Automator is only checking if any files are newly added.
6
votes
4answers
337 views
Tools or scripts for tracking a stolen or lost Mac?
Actually I do use the prey project but was wondering about other tools or scripts one could use to find back information about a lost/stolen Mac.
With features like:
-Getting the ip address or any ...
1
vote
1answer
295 views
Using select.kqueue() to tell when file is modified in python?
How can I use select.kqueue() to find out when a file in a folder has been modified?
15
votes
4answers
1k views
Concisely starting Mac OS apps from the command line
I do a fair amount of work in the command line, and I find myself defining a lot of aliases of the form:
alias skim='/Applications/Skim.app/Contents/MacOS/Skim'
Is there a way to add magic such ...
4
votes
1answer
111 views
Force an app to run one of its menu options from a shell script?
Is there any way to force the App to run one of its menu options if there is no command line interface available?
Perhaps an Automation sort of thing?
EXAMPLE
I would like to run NewsFire's "File > ...
5
votes
4answers
1k views
Alternatives to command line unzip?
I've found that the command line unzip tool doesn't gracefully handle some of the files I'm unzipping: it makes a bunch of junk directories, and creates files whose resource forks aren't found. ...
2
votes
2answers
683 views
Command Line method to backup using two Time Machine disks
Does anyone know of a command line method to select the active Time Machine disk? I would like to alternate between two backup disks for redundancy. I would like this to be automated, presumably via ...
1
vote
1answer
53 views
Script doesn't find file
Suppose my_folder contains my_script and my_program. my_script tries to run ./my_program -myoptions. It works when I cd into the directory, but not when I double click on it.
Here is the output:
...
6
votes
3answers
281 views
3
votes
1answer
2k views
Turn on Back To My Mac via a Script or Command Line
The VPN software I use for work (IPSecuritas) requires me to turn off Back To My Mac to start it's connection, so I frequently turn off Back To My Mac in order to use my VPN connection (the program ...
