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
10 views

How Can I Convert A .TXT File To A .CSV File Without Losing Any Of The Content Of That Document?

I've been trying for about 4 days now to complete the seemingly simple activity of converting an OS X keychain text dump to a .csv with no progress, much less success. I posted a different question ...
0
votes
0answers
16 views

Organizing TV Show with automator & tvnamer

Previously I used Hazel (http://www.noodlesoft.com/hazel.php) and tvnamer (https://github.com/dbr/tvnamer/) to sort and rename my TV Shows Collection. I'm trying to simplify the process by using ...
0
votes
0answers
12 views

Silent installer for remote macines

I am trying to create a script to install logmein silently (or in the background) with out enduser input. I have the process to download the zip and create an admin user (for later login) however I ...
1
vote
1answer
32 views

Display dialog with current iTunes album cover

I would like to display with AppleScript a dialog that shows my current title, artist and album. In addiction to that the icon of the dialog should be the album cover of the current album. Is that ...
0
votes
1answer
81 views

Text-to-speech with 2 languages

I am studying French and to practice my pronunciation and to learn the words, I want to have my mac speak the words out loud. My mac should say the word in English, and after that, he should say the ...
0
votes
1answer
15 views

Reset dock icons while log off

I have an iMac for public use, I want to ensure the dock icon won't be changed by others (i.e. keep factory setting). Currently I know the following two commands can do this: defaults delete ...
4
votes
1answer
127 views

Script to change Computername/hostname causing bizarre Terminal behavior

I have a script (mostly borrowed) which utilizes scutil to rename computers based off of values in a CSV file. It matches the serial number to a computer name, sets a variable, and then renames the ...
0
votes
0answers
27 views

How to create two column table script?

Is there a way to create a two column table in TextEdit with some way to create new cells by hitting the Return key, as you can do in Word? Alternatively, is there a way to achieve the same effect ...
1
vote
3answers
74 views

Built-in GUI-based ASCII only editor for OS X

I am trying to programmatically invoke an OS X editor from a script which: does not add smart quotes or any non-ascii characters while editing will work "out of the box" on any standard mac system ...
-2
votes
2answers
41 views

How do I make this terminal script work properly?

I want it to appear like I'm contacting a bunch of ip-adresses and it works fine until the third line in the code and I want to be able to fix it. Also the 4 bottom lines don't work. So this is ...
0
votes
1answer
21 views

Using Fluid.app is there a way to switch tabs periodically?

I'm using Fluid.app as a way to display content from URL for monitoring my servers and other services in my data center. I have a few tabs open in this fluid.app window to display another URL with ...
0
votes
1answer
37 views

How to Change Scroll Speed Programmatically with Applescript or Shell Script

Is there a way, using either applescript or a shell script, to change the scroll speed? I don't even know where to begin to look for a mechanism for this. Oh, and no third-party applications either, ...
1
vote
1answer
25 views

Is there a way to see the invisible formatting in my clipboard and/or create the formatting when piping to pbcopy?

Is there a way to see the contents of my clipboard in a way that shows me what formatting metadata is included? Or to get to the question behind the question: is there a way to generate output in a ...
0
votes
2answers
27 views

Post-boot and login notification

I am using 10.10.2 and I have limited experience with Terminal. I would like to create a script which would notify me (on screen) when all of the startup processes are completed, post-login. The boot ...
0
votes
2answers
60 views

How can I create a script with multi command

I tried to create a script on OS X. I do something wrong. I want to execute 2 command: defaults write com.apple.finder CreateDesktop -bool true and killall Finder I saved and chmod the file but ...
0
votes
1answer
33 views

Long running process defined as Service

I created a service for starting a Virtual Box headless, which works fine - but the service does not end until the virtual machine is stopped again (the spinning wheel is in the menu bar (or whatever ...
2
votes
1answer
27 views

Can't get Terminal to Display Colour (Mavericks)

I've recently been working on a script to backup files, etc. for my own use but recently I thought it may look nicer if I was able to cleanup and have everything nice and tidy (with colours and what ...
0
votes
3answers
143 views

Login Script for deleting contents of /private/var/folders

We have fleets of laptops that have limited space once our software is installed on it. What ever the issue that is causing the creation of theses files and --err not flushing them, we are ignoring ...
2
votes
2answers
142 views

Automatically Move Files Created In Folder

I have a project I've inherited from an ex-employee that is missing the source, so I am attempting to debug from the temp files it creates in a directory. The issue is that it creates and deletes some ...
0
votes
0answers
9 views

Recursively remove trailing space on all files and folders [duplicate]

I want to recursively remove trailing space on all files and folders. ruby -e "Dir.glob('* ').each { |name| File.rename name, name.chomp(' ') }" works for PWD. How do I run it on the whole ...
1
vote
1answer
51 views

Can I write a script to take an action right before the computer is going to go to sleep?

I think my computer is randomly not syncing email correctly with Apple Mail, but it's only a problem when it wakes from sleep. That issue is neither here nor there. What I'd like to do is write a ...
0
votes
1answer
41 views

Turning Off Wi-Fi During Logout Script Doesn't Work With Launchd

I'm writing a launchd plist and a shell script on my MacBook running Yosemite to automate the following scenario: Turning off Wi-Fi when the user logs out. Here's my script: #!/bin/sh onLogout() { ...
2
votes
2answers
54 views

Script to relocate the menu-bar on dual monitors set-up

Is there a script that could be written to achieve this: In System Preferences/Displays... is it possible to relocate the menu bar ...via a script? My set-up is one monitor and a Cintiq. I either work ...
-1
votes
1answer
18 views

Using variables in pathnames and pathname variable help plus finding username applescript?

So, I want to have my script to be able to find out the current user's username and store it in a variable (myUsername). Then, it will go to /Users/myUsername/Desktop/FV.app. How can I do this and ...
1
vote
2answers
33 views

In which .plist is the underscan setting stored?

I'm trying to write a script which changes the underscan value on my Mac mini, but I haven't found the .plist file containing the setting. Does anyone know where the underscan setting is saved?
0
votes
1answer
40 views

Is there a way to get a list of all currently running program's window titles with AppleScript?

I'm looking to write a script which outputs a list of all the window titles of all the currently running programs. Is there any way to do this with AppleScript? I tried running the following code: ...
2
votes
0answers
35 views

How to access GPS data from command line on jailbroken iPhone

Are there any binaries available via the command line to get information from the GPS on a jail broken iPhone? I've searched through Cydia and haven't found anything, but I wouldn't imagine this ...
4
votes
1answer
308 views

On OSX what is the opposite command to “say”, i.e. what command is there for speech recognition?

I'd like to be able to enter a command that registers a speakable word that OS/X can listen for all the time. When the user speaks that word, it should launch an app. Similar to the "OK google" idea. ...
1
vote
2answers
65 views

find -printf work around

I'm trying to use a script to call compare file size. Unfortunately the version of find on my mac does not support the -printf switch. Any suggestions?
1
vote
2answers
60 views

Escape sequence in terminal or iTerm to jump to absolute column?

Is there an escape sequence which I can use to jump to an absolute column in OS X Yosemite Terminal or iTerm? In other words: echo 12345678901234567890 echo \StartAtColumn10 A10 \StartAtColumn2 B2 ...
2
votes
1answer
223 views

Move all contents from a folder to another with shell script

Why does this work? mv /Users/diogosaraiva/Music/Youtube/Novas/* /Users/diogosaraiva/Music/Youtube/Tratadas …but the commands below don't work? mv "/Users/diogosaraiva/Music/Youtube/Novas/*" ...
2
votes
1answer
60 views

Screen Recording - NO COMPRESSION

I'm looking to record my screen similar to how Quicktime does it, but I need zero-compression, since I need the pixel colors to remain correct. Basically, I need a automated series of screenshots, if ...
0
votes
1answer
214 views

Automator gets stuck at shell script

I am building an automator script to do automatic backups to a network drive via rsync. The shell script works perfectly fine in terminal and completes and everything, but when i run it from ...
1
vote
1answer
154 views

Change iTerm2 Default profile preset with “defaults write…”

I want to do this in my dotfiles script. I managed to download the preset I want using curl and open it, but I don't know how to set it in the default profile: curl -L ...
1
vote
1answer
130 views

Problem persistently defining aliases in terminal

I am trying to persistently define some aliases for my everyday terminal use. I started off with this tutorial: How to persistently define aliases in Terminal, more precisely with Mike's comment. As ...
3
votes
1answer
64 views

How do you close a file that you've opened with /usr/bin/open?

I've opened a PDF file with /usr/bin/open, and now I'd like to close it from the command line. (I'm writing a script.) How might one go about doing that?
1
vote
1answer
75 views

Automator fails. Is there a better solution?

Recently I was trying to train an Automator script to run some mundane tasks - unfortunately it stops at the first step. I clicked the "record" button on my old Mac OS 10.5 machine, opened Keychain ...
0
votes
3answers
137 views

Can I set the primary Language of OS X by using shell script or AppleScript?

My computer is mac mini (late 2012) with Yosemite 10.10.1 installed. The primary language of the system is English, with Chinese being the second language. Sometimes I need to use the Maps.app, and ...
1
vote
0answers
137 views

Automate/wrap a few SH scripts in one - Deploystudio

Right now I have a few .sh scripts that are being deployed via Deploystudio. I've created seperate scripts and tasks for each command. Though, it doesn't really function. The logs tell me that I need ...
4
votes
1answer
83 views

What are the differences between Applescripts saved as *.scpt and *.applescript?

It seems to me that those scripts that are saved as *.applescript are always meant to be the raw, uncompiled text while those that are saved as *.scpt can be either the raw text or the compiled ...
0
votes
0answers
43 views

Hooking into establishing Wi-Fi connection on Yosemite

Is there a way to hook into the process of establishing a Wi-Fi connection for executing some arbitrary actions (i.e. scripts or something) on certain events like connection established, connection ...
0
votes
1answer
165 views

Shell script to boot OSX in recovery mode and execute another shellscript

I'm working at a University and we are restoring our Macs using Apples ars which works great. The process is to manually go to the computer - reboot it in recovery mode and then run the ars command to ...
2
votes
1answer
286 views

How to have Finder open 'Pictures' folder when iPhone connects and photos import via AutoImporter.app?

I have a nifty setup on my MacBook Pro, where, upon connecting my iPhone, I have AutoImporter.app (/System/Library/Image Capture/Support/Application/AutoImporter.app) automatically import whatever ...
0
votes
1answer
49 views

How can I write an Apple Script in order to check if bluetooth and ethernet are on or off?

I'm trying to write a little script in order to check whether or not bluetooth is on and whether or not an ethernet cable is plugged in. I searched the System Preference dictionary built in the app ...
0
votes
0answers
52 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
127 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 ...
1
vote
1answer
336 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
106 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?
2
votes
2answers
385 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
326 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 ...