0
votes
0answers
11 views

How can I create user defined actions triggered by hotkeys on Mac Os?

I would like to know how can I create actions triggered by hotkeys in a way similar to what can be done with autohotkey on Windows but on Mac. I've read that applications like Karabiner or Keymando ...
0
votes
1answer
80 views

Mavericks startup script

I am trying to write a small script to launch when user logs on. I have searched and got the script to work but unable to run at log on with .plist We have active directory setup. When the user logs ...
1
vote
2answers
57 views

A button to copy your email address to clipboard in Mac OS

My e-mail address is long and every time i get asked to insert it somewhere, i spend time writing it and reading it twice before i submit it and still sometimes i send the wrong e-mail address. It ...
1
vote
1answer
51 views

Terminal command to include currently logged on user

I am trying to write a script that makes our network (active directory) users local administrator on their macs. I have the script that will do this: dseditgroup -o edit -n /Local/Default -a ...
0
votes
0answers
22 views

creating a script or some way to realist items on ksl.com/classifieds?

Hi all I don't know if this is the place to ask this question but I am wondering if there is some way to make a script or some action to be able to relist items on auction websites like ...
0
votes
1answer
305 views

Delete all login.keychain files

Does anyone know a way to script the deletion all login.keychain files from all user directories on Mac OS X? This is a lab environment bound to AD, and when a user changes their password, without ...
0
votes
1answer
111 views

mac osx script - find mounted disc with name, copy file from desktop to it, when copy complete, unmount disc

Is there some kind of mac script which finds a newly mounted disc drive that has the name 'EXAMPLE', then copies a file/folder to it and safely ejects the disc when copy has finished? I don't mind if ...
5
votes
2answers
1k views

How can I tell if OS X is connected to a VPN network from the command line?

How can I tell if OS X is connected to a VPN network from the command line? By running ifconfig without any arguments when I am connected, I see that there is a utun0 interface which appears to be ...
1
vote
1answer
539 views

starting mongodb from a bash shell script

I am trying to start a mongodb using a cronjob+shell-script combo. In the shell, mongoDB starts when I enter $ mongod, however my executable shell script fails with mongod: command not found. I ...
1
vote
1answer
242 views

How to run a shell script on a Mac (10.7.4) to auto install updates?

Im trying to run this shell script that is supposed to do this: This script uses the softwareupdate program on OSX to automatically check for updates and install them. It also logs all updates to ...
0
votes
2answers
727 views

Why won't my script change MAC address via macchanger at startup? Ubuntu-based

I have recently pieced together a script with my limited knowledge of bash that is supposed to do 2 things: It is supposed to change my hostname and then change my mac address. I put the ...
1
vote
2answers
1k views

Close all Mac Terminal windows, but the one running a script

I am trying to create a shell script that runs a python simulation programing in 4 terminal windows. I have the script that launches the program four times in four separate terminal windows(total of ...
0
votes
0answers
145 views

How can I have Photoshop start and run an action on Mac OS X?

I have an action I've created, and it is listed in my action palette: The action takes the image on the clipboard and saves it to a file. How can I start Photoshop and run that action from the ...
1
vote
1answer
1k views

How to run python script on startup with sudo permission on Mac OS

I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission. So the question is, How do you run the script on ...
1
vote
0answers
1k views

Macintosh OS X Logout Script

I am working on a project where I need to implement a logout script on some Macintosh computers. I have read the following Create a logoff script/task for Mac OS X article and found that while it is ...
1
vote
1answer
762 views

Mac OS: Automator-script for saving mails to auto-generated folders

I am looking into automator and need it to help me out with the following simple task: I need to have the attachments of a number of messages, which are sorted in a folder in Mail, downloaded and ...
6
votes
4answers
3k views

Fastest way to drain battery

I'm using Mac OS X 10.7.1 on a Macbook Core 2 Duo. What's the fastest way of draining the battery without crashing the system and preferable by using some sort of a script?
5
votes
4answers
6k views

How to run a script at shutdown with Snow Leopard?

I want to run a script when I shutdown or restart my iMac, running Snow Leopard. I read somewhere that one could use the /etc/rc.shutdown.local for this, but it is not working for me. For example, I ...
1
vote
2answers
4k views

Splitting a large txt file every 100 lines and including the original header (on a Mac)

I am looking for a tool or script (Textwrangler or Terminal) that can split a larger text file every 100 lines counting from line 5 (the first 4 are header lines) and output individual .txt files ...
1
vote
2answers
329 views

Script to update Flash Player?

Is there script I can run in order to safely update Flash Player, on Mac OS X? Without having to manually download, delete or do anything else?
1
vote
2answers
83 views

How Do I Automatically Update My Database Nightly

Currently, every day before I start work, I complete the following procedure: ssh to the production server gzip our daily database dump file scp the gzipped dump file over to my computer gunzip the ...
2
votes
2answers
3k views

How to initiate NTP update

My MBP currently is not connected to the internet when it is booted. (vacation) now I notice, that each time I return to OS X after a Bootcamped XP game, my system time is of by an hour. (XP and OS X ...
3
votes
5answers
2k views

How to run a bash script outside of a terminal?

Hey All, wrote this script to confuse my girlfriend when she is using my computer. The only trouble is that if the terminal gets closed the script stops to execute. It currently executes in the ...
4
votes
4answers
11k views

Run AppleScript on startup (background)

I want to run a apple-script on Mac OS X on startup. The script shall run during the complete lifetime of the user session. What is the best solution to do this? My Script: on idle do shell ...
1
vote
1answer
2k views

Script to disable any key on Mac?

How to write a script to disable keys on Mac? Is there any script to do that?
3
votes
4answers
3k views

Mount a share on a Mac using a login hook

I have a script that mounts a Samba share to a folder on the desktop, it runs no problem but when its setup as a LoginHook it doesn't mount the folder. Does anyone have a working login hook that ...
7
votes
2answers
3k views

Playback random section from multiple videos changing every 5 minutes

I'm setting up the A/V for a holiday party this weekend and have an idea that I'm not sure how to implement. I have a bunch of Christmas movies (Christmas Vacation, A Christmas Story, It's a ...
32
votes
9answers
64k views

How can I run an application with command line arguments in Mac OS

Is there any easy way to append command line arguments to an application on a Mac? For example, to run Opera in kiosk mode or to use a different profile in Firefox, I can type $ ...