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
0answers
7 views

Uninstall CheckPoint VPN Script Prompting For Password

When running the uninstaller sh script in the CheckPoint VPN package from terminal I get prompted for the usual authentication window. But the authentication window does not have focus so when I type ...
0
votes
1answer
34 views

How can Apple Script open a shell script with options in a Terminal window?

I’m trying to use Apple Script to execute a shell script file in a new Terminal window, while sending it options. How do I do that? It seems as if Terminal only interprets the path to the script, and ...
0
votes
1answer
44 views

Can I script my mac to reboot and login at a specified time?

Can I use shell scripts, AppleScript, or some other form of scripting to get my mac to reboot and login at a specified time? If so, how?
1
vote
0answers
18 views

Create a script to turn wifi off on shutdown

Is there anyway to create a script that will automatically shut down the WiFi when I power down my machine? Maybe in Automator?
1
vote
2answers
127 views

Troubleshooting “Unexpected argument” error when running defaults write

Trying to change the default screenshot directory to a specific folder in my google drive, but when I try the following command defaults write com.apple.screencapture location ‘~/Users/tommy\Google ...
0
votes
1answer
37 views

Setting environment variables for scripts run by launchd?

I have a script that worked in the past, but seems to be having issues now (I believe it's due to Yosemite). What I had done was created an environment variable that was set to "false" and then my ...
0
votes
0answers
13 views

# always in front

We all know that via system manager we could add programs they should start visible or not visible with the boot/reboot and that after a power-off the device should restart etc ... What is the most ...
0
votes
1answer
28 views

How to print result of some javascript execution in ScriptEditor?

I want to test a piece of a very simple javascript and print out the result. The Script Editor however only prints out undefined in the Result pane. What is the easiest way to print out the result? ...
0
votes
0answers
231 views

Automator Script not running under OS X Yosemite

I used to use the following two Automator scripts under OS X Mavericks to find out the source file of the actual wallpaper picture of the main screen and my second screen. After installing OS X ...
0
votes
2answers
681 views

Problem with startup script rc.local in OS X 10.10 Yosemite (Running Bootcamp in VirtualBox)

Until OS X 10.9 I could also run bootcamp within Virtualbox (through a .vmdk file). In order to do this I needed to unmount the bootcamp partition after changing the permissions during the OS X ...
0
votes
1answer
18 views

How to skip the tools during installation which I don't want to install from this automated installation list for osx dev tools?

https://github.com/thoughtbot/laptop/blob/master/mac For example I don't use Heroku so I want to comment out Heroku stuff. But I don't know how to do that. I have forked this script and want to ...
1
vote
1answer
38 views

How to parse output from a command in OS X Automator?

I have the following code in Automator but it fails to load the variable with the output from the command. for f in "$@" do output = hdiutil verify "$f" echo "$output" done I want to parse ...
0
votes
1answer
43 views

How to enable “Show message on Lock Screen” with Script

So, In Mavericks, you can set text to be displayed on the lock screen by checking the box: System Preferences > Security & Privacy > General > "Show a message when the screen is locked", then ...
1
vote
1answer
32 views

Run script before every Time Machine backup?

I would like to be able to run a bash script just before Time Machine runs, every time This script generates some content to be written on a file which needs to be backed up by TM. I have looked ...
5
votes
3answers
236 views

Run Script on Logout Without Use of Logout Hook

I've been looking into running a few cleanup commands when a user logs out, however the old logout hook feature, although still functioning, has been deprecated for some time now so may not be with us ...
1
vote
2answers
43 views

Delete a currently-open file directly in the application?

OS X's ability to rename or move a currently-open file right inside the application is really handy: To take it one step further, is there a trick to actually delete the current file inside the ...
1
vote
0answers
203 views

Applescript / Automator - Pass variables between them

I have a question about how to pass the applescript input from one computer to another computer's automator input (I created it as a program). I've created the script below to ask for the filename and ...
0
votes
2answers
24 views

Prompting user for input on locking screen

I'm relatively new to OSX (running Mavericks), but my goal is to create a script that reminds me to take notes on the day's work. The script will ideally: run upon the user clicking 'Login window' ...
1
vote
1answer
402 views

Bash Script to Auto-Update (and reboot) all Updates to Mavericks & Yosemite?

I'm seeking a script that I can execute on a newly installed Mavericks or Yosemite computer, that will install all updates, rebooting as necessary and starting again automatically. For instance, I'd ...
0
votes
1answer
19 views

How to run a script on login whilst being hidden

I have an applescript (scpt) script that I would like to run on login of a user. I would like the script not be visible in the dock, menu bar, etc. (This would probably mean running it in the ...
0
votes
0answers
22 views

What is required to make a bookmark that creates calendar events from values on a web page?

So I have a page that has days and times on it, and I want to know how to make a script or bookmarked script that will find these values and put them into my calendar. Any idea?
0
votes
0answers
19 views

automator script for typesetting TeX can not run the TeX engine

In the script below instead of echo $filename I want to have xelatex $filename. However, if we do that the automator gives a running error without any description. Before I set the path I was ...
0
votes
0answers
44 views

Best practice for changing AD domains on MAC, Mountain Lion & Mavericks?

We are changing domain name in our company. I have over 3000 users, that are local and remote, I need to able to change their domain on 10.8.5 (Mountain Lion) & 10.9.5 (Mavericks). I am hoping ...
-1
votes
1answer
36 views

Extract lines from txt file and save as new txt

I have a xyz.txt file looking quite like this: 001this is line one 002this is line two 003and this is line three 004and so on Now I need all those lines as a single txt without the three digit ...
0
votes
2answers
79 views

Run script as root whenever any user logs in

What's the best way to run a script with root privileges whenever any user logs in? It should run in the background without prompting the user for a password.
1
vote
1answer
59 views

Can I control window size and position when opening files via script?

I have a script that opens three shortcuts to VNC locations that open in Screen Sharing.app. I would like to specify where the windows go, and their size, when these screenshares launch - one ...
1
vote
0answers
75 views

Why won't this script bind to my server?

I am trying to figure out why this script is not binding client computers to the OD server. It is a firstboot script that is part of a netrestore image that runs at login. It does seem to run ...
3
votes
5answers
170 views

Shell script help

I am new to writing shell scripts for Unix and need a little help. I am not sure why cURL now all of the sudden after running the script is downloading corrupts packages which cannot be mounted and ...
0
votes
0answers
111 views

Apple installer issue in terminal where -target keeps saying; error cannot find Volume

I am trying to use the Apple Installer commands to install a package and the output is that it was successful, however, the end result is that nothing actually happens meaning the package never gets ...
0
votes
1answer
13 views

Switching “TrackpadMomentumScroll” on and of using a script

I'd like to switch the accessibility preference "Scroll with inertia" on and off for a Magic trackpad. The preference can be found in the accessibility preferences/Mouse and Trackpad/Trackpad ...
1
vote
1answer
171 views

Why does this bash script not work as an automator service?

I know very little about bash scripting or Terminal commands, this is all very new to me so please bear with me. Original script I would like to use a script I found on littlefield.info as an ...
0
votes
0answers
21 views

I need a background process which redirects a link based on whether or not an external hard drive is connected

Basically I have two iTunes libraries. One is my complete iTunes library which I store on my external hard drive. The other is a smaller version that I keep locally. I want to have a symbolic link ...
1
vote
2answers
16 views

How to make certain keystoke in AppleScript?

I am trying to make a program that records a live stream for a certain amount of time and then saves it on my desktop. This is what I have so far. TWiT Live Recorder (30 sec version) tell ...
0
votes
1answer
40 views

How to iterate through multiple file extension without caring about case sensitivity?

I've seen various topics on how to iterate through multiple file extensions, but in most cases the list is defined. example: for file in ${arg}/**/*.{txt,h,py} do .... done As can be seen, ...
1
vote
2answers
44 views

How to run a script from Alfred or Spotlight or any run dialog?

Coming from Linux I am really missing the good old gmrun -- a run dialog which recognizes your $PATH and allows you to execute any script in it without needing to open up a terminal. It does the job ...
1
vote
1answer
96 views

Execute simple script

I wrote the following very simple script: route -n add 192.168.0.0/20 192.168.224.1 route -n delete 0.0.0.0 route -n add 0.0.0.0 172.20.10.1 And would like to just double click it and you ...
0
votes
1answer
47 views

Banning domains temporarily from local access

I need to control myself. So far, I was using a Windows device for work, where I would simply reroute Facebook, news sites and similar to 127.0.0.1. In near future, I will have to use the same device ...
2
votes
1answer
43 views

Exponential Slowdown of Applescript

So I've been working on a simple AppleScript to try to help with managing my e-mail in OS X's Mail, and I have it seemingly working just fine with one major problem; the performance of the script is ...
2
votes
0answers
24 views

Run script when I connect something to the line in port?

I'm connecting my phone to my mac via the line in port to listen to podcasts. I'm using the app LineIn to do this and I was wondering whether there was anyway I could have: My audio input be set to ...
0
votes
1answer
162 views

How do I get system_profiler output from a lot of machines in a network?

I need to have a script that will execute "system_profiler -detailLevel full" command in a remote mac machine. While this is going on, the user on the remote machine should not know that there is ...
1
vote
1answer
109 views

Automate mobile terminal?

I have a jailbroken iPhone. I use it to reboot my router when my wifi is going slow or messing up. But I'm lazy and I was looking for a way to automate the process. I use shortcuts that mobile ...
1
vote
1answer
69 views

AppleScript to find and delete a folder inside an FCPX library

I need to write or find a simple script to find, select and move to trash, folders within a Final Cut Pro X library. Because these libraries are bundles you can't search them in the normal way. What ...
3
votes
1answer
1k views

What is an alternative to a BAT file on Mac?

What is the alternate for BAT file (Windows) on Mac? Does different version of OS X have different format of BAT files? I am trying to create a BAT file on Mac which normally changes directory while ...
1
vote
1answer
336 views

Double click in AppleScript

How do you write the command to carry out a double click with a mouse at a specific location in AppleScript?
0
votes
0answers
23 views

Tagging/organizing based on keywords in content

I have a series of markdown files with YAML headers, let's call them A, B, C, D, and E. I need to organize them into "binders," where each binder is some subset of these, for example: Binder alpha ...
0
votes
2answers
41 views

Wiping all content under /Users but admin

We have hundreds of computers with LDAP setup and when students login their profiles remain for life. IS there an easy script or something that could be run to clean out the entire /Users directory ...
0
votes
0answers
83 views

Need Apple Script to redirect work mail - Mail rules don't work

I have to use MS Exchange at work for email, so I have Outlook and Apple Mail set up. I want to use Gmail but POP is disabled for us, so I can't just pop it to gmail. So, I tried setting up a rule in ...
2
votes
1answer
129 views

Shell scripting: Why does only the “-” hyphen throw an error?

Goal: Cleaning up Selectively truncate filenames in my nvALT notes folder. I tried using a productivity blogger's suggestion (which eludes me after a thorough search) to prepend ^ > - + to ...
3
votes
3answers
269 views

Shell scripting: Select folder based on part of file name

My project I'm creating a bash shell script to execute from the Terminal. Its purpose is to archive lots and lots of project folders. Each folder follows a prescribed nomenclature: [YYYY.MM.DD] - ...
0
votes
1answer
636 views

How run a .py (python?)-script in Xcode?

Hi I got the complete code, but I don't know how to run the script. The script is some plot of a function, can one run the script so that the plot is shown in xcode?