AppleScript is the Mac OS scripting language.

learn more… | top users | synonyms

1
vote
1answer
2k views

How to automatically print the contents of a folder in OS X?

I would like to be able to set up a folder on my Mac, where I could dump files and have them be automatically sent to the default printer. This way I would be able to print files at home when I'm not ...
3
votes
2answers
2k views

What is the best way to make Calculate SHA1 as a context menu option in Mac OS X?

In order to calculate the SHA1 checksum of a downloaded file, I could type /usr/bin/openssl sha1 in Terminal and then drag there the file which I want check. To make it simpler, one could enable a ...
0
votes
2answers
647 views

Applescript cannot find sed during application install

I am attempting to install an application, but the installer fails with the following error message: sh: sed: command not found and there is an Edit and OK button in the dialog, so I click the Edit ...
0
votes
1answer
785 views

Excel; exporting/importing different columns to different csv files

Is there a way to batch export different columns to different csv files in excel on an OSX, I'm thinking something along the lines of possibly automator, applescript or bash. I've had a look play ...
3
votes
2answers
2k views

how can I save the layout of my open apps on osx?

I'd like to save the position and size of my open apps and restore them later (after restart). I found an applescript that does this with finder windows only: ...
3
votes
1answer
1k views

How to update Preview.app from the command line without losing focus on Mac OS X?

I want to update Preview.app in the background from the command line without losing focus of my current window. I know that I can use the following to open/update the view of a file, but then I lose ...
5
votes
2answers
1k views

How do I make Mail.app quit after iCal sends an alert?

iCal uses a built in script file to email reminders through Mail.app. It works great, but I don't use Mail.app for my main email account, just for sending calendar notifications. So, Mail.app opens ...
2
votes
1answer
873 views

Save as PDF to Folder Script for Apple Mail

I want to add a script to a rule to auto-print messages as PDF to a specific Folder. What I found was this: http://is.gd/acmsE but it doesn't work for me on OS X 10.6. I already know the Save to PDF ...
1
vote
3answers
1k views

Can Automator or Applescript copy the number of items in a folder to the clipboard?

In Automator or Applescript, is there a way to get the number items in a folder and save result to the Clipboard or Automator Variable so I can use it in the next Action?
2
votes
1answer
1k views

Save and reopen Spaces configuration in Mac OS X

Let's say that I am working using several spaces. In one of them I have 20 applications opened with their respective files. My computer crashes and I have to open everything again. Instead I want to ...
4
votes
2answers
1k views

Mac Screenshot of a Specific Window without Using the Mouse/Click

I've been researching for a day or two but can't find a method to take a screenshot of a specific window (possibly the only window) open at a specific time using an Apple script. Currently I have the ...
2
votes
1answer
81 views

Are Snow Leopard text substitutions scriptable?

I prefer using typographical quotation marks when possible, so I love the Smart Quotes part of Snow Leopard’s text replacement feature. But there are a few cases in which I need to toggle it, and it’s ...
8
votes
7answers
5k views

MacOS X: How to have a handy “Open this folder in iTerm” shortcut?

I think the title states exactly what I want to do. I want a shortcut or even a button within Finder which fires up a new iTerm Tab and changes the location to the location i've open in Finder. Some ...
0
votes
1answer
283 views

Add Feeds to Mail.app from the Command Line

Is it possible to add (RSS/Atom) feeds to Apple's Mail.app without using its GUI? It's possible to subscribe to feeds using Mail.app through Firefox but I don't know how they implemented it (you ...
3
votes
1answer
247 views

Script Editor in Snow Leopard painfully slow after adding apps to Library

I have four different Macs that I use from time to time, and on each of them I notice a constant: adding more items to AppleScript Editor's Library window slows performance of mundane operations ...
0
votes
1answer
398 views

Applescript - Take a plain text and turn into a html link

We work with bugzilla. Whenever you need to query a ticket you just need to know the bugid (integer) and you simply prepend this to it. ...
3
votes
4answers
4k views

Applescript to lock the screen

I need a little Applescript to lock the screen, the same behaviour I get when I click the Keychain icon in the menu bar and choose "Lock screen". I found a way to activate the screensaver, but it's ...
2
votes
3answers
1k views

Get a list of all files and their attributes on OS X

What is the best and fastest way to get a list of every file on OS X including hidden and system files along with their attributes? I'm not afraid of the terminal or scripts, but if there is a ...
1
vote
1answer
979 views

Applescript: Check if shell command fails?

I'm writing an AppleScript to watch a folder for completed downloads, then process them. If I'm downloading a file split across partial RARs (.r01, .r02, … God I hate those), they'll enter the ...
0
votes
3answers
747 views

Mac OS X CD ripping speed

I am using vobcopy (installed via macports) to rip DVDs on a mac. I have been doing this for a while on linux with no problems. On the mac however, it is VERY slow. I am guessing that somehow the DVD ...
13
votes
5answers
65k views

Track kids browsing history even when they know how to clear it manually

I have a colleague with two teenage boys (yes, cue cliche's about 'I have this friend see...') He's currently having issues with them browsing pr0n and wants to do a little spying on their browsing ...
5
votes
1answer
804 views

Responding to Growl notifications with Applescript

I'm looking to write some Applescript which is run in response to Growl events. e.g. email arrives from a given user which effects some change on my Nabaztag. I can find plenty on the internet ...
4
votes
5answers
2k views

How to prevent iTunes from adding converted Mp3s to the library?

When I use iTunes to create Mp3 files from songs I've bought, iTunes also adds them to my library and I got them twice. How can I prevent iTunes from adding converted Mp3s to the library in the first ...
0
votes
1answer
503 views

Is Grapher (Apple)scriptable, and if so, how?

I use Grapher all the time, and while I think it's mostly wonderful, there are some things about it that I find annoying. Specifically: The default 2D graph has annoying default options that ...
2
votes
1answer
498 views

A way to strip certain text from incoming email in Mail.app (Mac Mail)?

I receive a large number of emails from a particular client of mine. These emails all come with a fairly long standard disclaimer at the bottom. When I print these emails, Mail makes a complete bodge ...
2
votes
2answers
2k views

Finding folders that contain changed files since date

So, I have a directory with lots of sub-directories Something like... main main/folder1 main/folder2 main/folder2/otherfolder1 main/folder2/otherfolder2 etc... Is there an easy way for me to ...
2
votes
3answers
9k views

Execute applescript without open the editor

Every time I want to run an applescript the editor pops up. Is there a way to run it directly?