Top "Applescript" questions

AppleScript is an end user scripting language that has been available in Mac computers since System 7 Pro (7.1.1). It allows for automation of system tasks, communication between processes, and creation of workflows, amongst other functions.

Open Terminal from shell and execute commands

I am lazy so I want to write a shell script to open my dev environment. I setup two commands …

macos shell terminal applescript
Applescript to open an application in full-screen mode?

I'm trying to program Alfred to open my Terminal, Sublime Text, and Chrome with a workflow. I would like for …

macos shell applescript alfred
is there a way to eject all external hard drives from the command line? (OS X)

Is there a way to eject all the mounted hard drive volumes on an OS X computer from the command …

macos command-line applescript
Applescript to "paste" clipboard

I am working on an Applescript to paste what was last copied to any current field. It is to be …

macos applescript voiceover
Send a key code to an application without activating it first?

I'm trying to send the spacebar key to an application without activating it first. The following code almost does what …

applescript
run applescript on 2x-click

OK, this feels like an idiot question, but I'm stuck - I don't know the first thing about AppleScript. I …

macos applescript
Using AppleScript to grab the URL from the frontmost window in web browsers: The definitive list

I built a [widget][1] that grabs the URL from the frontmost window in Safari, then allows you to shorten it …

firefox safari applescript flock camino
Applescript get list of running apps?

Applescript newbie question again :) I am trying to create a small applescript that will allow me to select multiple items …

macos applescript osx-mountain-lion
Calling AppleScript from Python without using osascript or appscript?

Is there any way to execute (and obtain the results of) AppleScript code from python without using the osascript command-line …

python macos applescript
How do I determine a variable's data type? How to convert to string?

I have two questions... Here is a really simple example script which causes an error: System Events got an error: …

variables types applescript