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.

learn more… | top users | synonyms (2)

0
votes
1answer
167 views

Script to Update/download most recent iTunes podcast WITHOUT opening iTunes at all?

I have a couple favorite podcasts that I subscribe to in iTunes. I'm using You Control (so I don't have to open iTunes to play my music). I'm using Keyboard Maestro. I've made a macro that runs ...
0
votes
1answer
2k views

How to initiate a specific keystroke using automator?

I have the following code : on run {input, parameters} if application "KeyboardViewer" is running then quit application "KeyboardViewer" else activate application ...
3
votes
3answers
149 views

An automated iTunes?

So I've wanted this for a really long time but I'm not 100% sure how to do it. I basically want to be able to have iTunes play a radio station when I come home. I was thinking of being able to have ...
0
votes
1answer
2k views

executing shell script requiring input from the user using the Automator

Using the automator is possible to execute a shell script that requires input from the user (a password) ? The shell script should be executed in the currently selected folder. I wrote a "Run Shell ...
0
votes
0answers
2k views

OS X 10.8 'cannot execute binary file'

I have a third-party software to preprocess my data (the data is recorded with the device of the third-party). This software was written for unix systems and runs without any problems on the following ...
0
votes
1answer
2k views

View youtube videos in 720p by default in Safari?

Is there a way I can force safari to start youtube videos at 720p by default ?? I was wondering if there is an automator code that can achieve this ? Or maybe an extension that solely does that ? (I ...
0
votes
1answer
6k views

How to lock MacBook with a keyboard shortcut? [duplicate]

Possible Duplicate: Is there a quick way to lock my Mac? I am familiar with using Automator, but I do not know what code should be used to accomplish the feature. Can anyone provide the ...
1
vote
1answer
287 views

how to create daily task for GMVault in automator

I just moved to Apple, being an experienced (i'd like to think so) Windows user. Recently I started using GMvault (gmvault.org) to backup my Gmail account locally, but it's become a pain having to ...
1
vote
1answer
143 views

logger vs syslog -s

What exactly is the difference between using logger and syslog -s? According to its manpage, logger provides interface to the system log module, but I can't really see the point given that syslog(1) ...
1
vote
1answer
708 views

“Self Destruct” script to remove certain directories and/or applications

Let's say your work situation isn't going so well, and you suspect the end is near. How would you prepare a script (or similar) to remove your personal files and applications from your work computer ...
0
votes
1answer
303 views

Is it possible to trigger a script when drive is ejected from the Finder?

I'd like to run a script (removing non-OSX .* files) on a USB drive whenever that drive is ejected - is there a way to trigger a script automatically when a drive is ejected from the Finder? To ...
0
votes
0answers
69 views

Is there a simple way for daemons and agents to communicate?

I've got a daemon that periodically checks for, and if applicable updates, some software (macports) and I'd like the user to get a GUI indication, using terminal-notifier, when that occurs. Since ...
1
vote
0answers
174 views

How can I make an Apple script for iCal event?

I'm trying to find a script to create a specefic type of event with iCal. Actions that I'm looking for in the script are: Create an event Choose a time and date Choose an alarm Choose a specific ...
2
votes
3answers
3k views

How do I create an AppleScript that will quit an application at a specific time and then put the computer to sleep?

I've been toying around with AppleScript and Automator to get this thing to work, but I just can't seem wrap my head around it. If anyone could show me an example or give me some tips on how I can set ...
6
votes
3answers
1k views

How to disable individual USB ports by script?

I am looking for a script which will allow me to disable one specific USB port on my Mac mini. It would only serve a purpose if it works in real-time and didn't require a reboot. I've found scripts ...
0
votes
1answer
1k views

Create Automator Service With a Python Script?

I'm trying to create an Automator Service that will act on selected text, converting dashes to spaces, and also making word caps for all the text. A friend gave me this python script (I know nothing ...
1
vote
1answer
550 views

Set terminal window title in a script

I would like to change the entire title of the terminal window for a particular bash script. I googled out but I couldn't find much more than this suggestion: printf "\e]0;My Custom Title\a" After ...
4
votes
4answers
1k views

Toggle “Use all F1, F2 as standard keys” via script

I toggle the "Use all F1, F2 as standard keys" setting very often and would like to automate it via a script (or a keyboard shortcut). Is it possible? I've tried to Google the right arguments for ...
2
votes
3answers
505 views

How can I see how long my computer has been active (as in not idle)

I've seen a variety of solutions to check how long my machine has been idle, and I know I can check how long since last reboot with uptime, but I'm curious if there's a way to see how long since my ...
1
vote
3answers
3k views

Remove Little Snitch via script

I want to be able to uninstall Little Snitch over Apple Remote Desktop. I came across the script below here: http://fromtheadmin.com/kill-and-remove-little-snitch-application-via-ard-script/ However ...
1
vote
2answers
2k views

How do I run an OS X command script on remote Xserves from a desktop OS X script?

The answer to an earlier question, Access and control home office network, iMacs, and Xserves, left me with a new problem. To review, I have a computing environment comprised of: 27" iMac with dual ...
0
votes
2answers
364 views

Is there a dial from Addres Book and tel:/sip: protocol handler script/application available for 10.7?

We are currently using Mac OS X 10.6 and snomURLHandler to convert tel: uri's to a http GET request. This computer telephony integration let us click on a telephone number in Address Book.app and let ...
3
votes
1answer
285 views

Can I make the Finder label a folder if it contains a file or folder of a specific name?

I'd love it if I could somehow make the Finder color-label all folders containing a .git directory so I could tell at a glance if the folder is a Git repo. Any ideas?
3
votes
1answer
352 views

Applescript array of applications

I have a script that reload the active tab of an open browser, but I want it to do with all opened browsers. Is there a way to make a list/array and use it in this code? This code works with one ...
3
votes
1answer
1k views

Fake.app: How to loop thru the rows in a CSV file and use the data in my Workflow?

I am using Fake to automate some web tasks. I have a CSV file on disk that contains rows of data which I'd like to use to fill out forms in my Fake Workflow. How can I iterate thru the rows in the ...
1
vote
1answer
337 views

double password entry to access account

I have the Require password 4 hours after sleep ... option in Security and Privacy System Preferences set and am running a script with launchd to suspend my session at a certain time of day (see this ...
2
votes
2answers
2k views

How can I use Automator to generate a kerberos ticket using KINIT?

I need to be able to generate a kerberos ticket for my MacBook Pro each time the machine restarts. I can manually run KINIT with my credentials to generate a ticket. What is the best way to automate ...
0
votes
2answers
459 views

lock account and sleep

Is there an easy way to lock my mac and then immediately sleep, all in one command? I know I can show the login window and then choose the sleep button, but I'd prefer one step rather than two (and a ...
4
votes
3answers
271 views

App or script to monitor/log processes starting and stopping?

I want to be able to start an app or script, leave it running for a few hours, then come back and see a log of what processes started and stopped in that time. This is not the same as Activity Monitor ...
2
votes
1answer
1k views

Running a gpg shell script to decrypt a file via Automator

I regularly need to decrypt a gpg-encrypted file (always the same) to simply view it in TextEdit. I have a very simple shell script for that. It looks like this: #!/bin/sh outfile=`mktemp -t $$` # ...
2
votes
1answer
581 views

Print folder contents with non-standard printing settings

I want to print all files which are dragged to a folder. Easy to do with Automator. But I want to specify more settings for the print, namely to print the items two times, to use paper tray 2 instead ...
7
votes
4answers
17k views

How do I execute a bash script that requires root privileges?

I have this script lines from my ISP: sudo bash echo "plugin L2TP.ppp">>/etc/ppp/options echo "l2tpnoipsec">>/etc/ppp/options It works if I paste line by line into Terminal. I want to ...
3
votes
1answer
979 views

How do I script Powerpoint to save a directory of PPTX files as PDFs?

If I have a directory of PPTX files I would like to save as PDFs. How do I script this operation?
1
vote
1answer
481 views

An Automator workflow for extracting text as speech from PDF files

I get PDFs to revise course content which I want to convert to MP3 files and take with me as spoken audio. Automator offers 'text to speech' conversion and it's great. When I try and build a workflow ...
3
votes
1answer
514 views

Automator PDF text to Spoken Audio file: What's wrong with this script?

I have pages of PDF notes which I want converted to spoken audio to aid revision. There are several suggested workflows online, but I'm still not getting the results I want. I used this model from ...
9
votes
4answers
4k views

Getting notified when someone logs into a server using SSH or Remote Desktop

I have a mac mini server running OS X Lion Server 10.7.3. It pretty much runs unattended without problems. However, the server is under constant "attack" according to the logs. The firewall and ...
3
votes
1answer
1k views

Is it possible to write a script to change the Energy Saver settings in OS X (10.7.3)?

Basically, whenever I know I'm going to be gone, or if I'm going to sleep, I change the Energy Saver settings in System Preferences in OS X (10.7.3) for Power Adapter to: Computer sleep: 1 min ...
3
votes
3answers
3k views

How can I use Terminal to monitor a network interfaces total traffic in Mb

I would like to use the terminal to monitor the network traffic on a given interface, with a view to providing alerts when certain cumulative totals have been exceeded. The script needs to gain ...
5
votes
2answers
868 views

A programmatic method for disabling all sharing services?

I'm seeking a programmatic method for disabling all the sharing services on a Mac. My preference is for an AppleScript or a shell script. I'd like to have the services shown in the picture below ...
0
votes
1answer
127 views

How can I make a keyboard configuration become default when I hook it up?

At work, I have a MacBook Pro and a RHEL workstation that share a HP keyboard and mouse via a KVM switch. I do most of my work on the Mac so I prefer to change the modifier keys so they command and ...
2
votes
1answer
85 views

'script' command in terminal, looking for a flush open

When I use 'script' on a unix terminal the -f option flushes the data straight to the file - from the man page "-f Flush output after each write. This is nice for telecooperation: One person does ...
1
vote
1answer
1k views

How to make a LaunchAgent with StartCalendarInterval

I want to start replacing crontabs with LaunchAgents. My first attempt is not working. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
2
votes
1answer
116 views

Start program in response to system events (like ip address changes, etc.)?

I want to start a program in response to system events, such as: IP address changes WIFI connectivity changes (whether I'm connected, and/or which network I'm connected to) Volume (as in disk) ...
1
vote
2answers
925 views

What is your preferred way to start a (shell) script from the GUI?

I was wondering what ways there are to start a (shell) script from the GUI, e.g. double-clicking an icon in Finder or launching via Spotlight. This is not about opening a terminal and "manually" ...
1
vote
1answer
205 views

How can I regularly move movies in iTunes to an external drive?

I have been adding a lot of movies to iTunes lately. Problem is, the size grows very quickly. I appreciate having the metadata in one place, but I would want to move the actual files to an external ...
2
votes
0answers
650 views

With Lion, Problems Accessing Shared NTFS Folders with SMB://

We are testing a local login script that we created for our Macintosh users on Lion. It has worked fine on all OS X versions prior to 10.7. Listed below is the script that we are using. When we run ...
2
votes
1answer
937 views

How Can I Restart in Windows Using a Script?

I'd like to be able to reboot into the Boot Camp partition without needing to go change the Startup Disk in System Preferences or holding down the Option key at startup. After reading some stuff on ...
20
votes
5answers
11k views

Possible to run scripts on sleep and wake?

MacBook Pro 2010 running OS X Lion. Is it possible to run scripts on sleep and wake events? My specific application is that I've got Dropbox-synced Truecrypt volumes that I regularly use on both my ...
2
votes
3answers
1k views

Inserting shell script into .app bundle

I'm trying to shoe-horn a shell script into an application bundle so that the shell script will be run when I open the bundle, as opposed to the executable put in there. Specifically, I'm trying to ...
3
votes
2answers
13k views

Can I use my iPhone as a “remote” for my iPad?

iPhones and iPads both have several apps aimed to be remotes for the PC/Mac -- mostly geared towards specific apps. That's not what I'm asking about. I'm interested in any way of using my iPad and ...