Skip to content

Category Archives: Applescript Studio

Adding a Check Updates Feature

This tutorial shows you how to add the Sparkle framework to an AppleScript Studio application using XCode 3.1.

The First Responder: Setting it to a Table Cell

This example project and accompanying explanation shows how to set the first responder (the active cursor) in an individual table cell.

The First Responder: Put a Cursor in a Text Field

This describes how to set the first responder (the active cursor) for a text field.

Adding a Help Book to your AppleScript Studio Application

This example project and explanation shows you how to add a Help Book to your application, thereby activating the help menu.

Reacting to Keyboard Input

This posting and downloadable sample project shows you how to how to react to user keyboard input.

Activate an Event Handler

This show the important basic step of activating a handler so that code can be added to react to various events.

Calling Cocoa String Methods in Applescript Studio

This posting and downloadable sample project shows how to make simple Cocoa method calls directly in AppleScript Studio.

AppleScript-Studio Mailing List

Another resource for AppleScript Studio that I have found really useful (through its archives page) is the official Apple mailing list for ASS. Apple’s Mailing List for AppleScript Studio: AppleScript-Studio Home AppleScript-Studio Archives It is also great to see interesting interventions from people such as the author Matt Neuburg and many other experienced scripters that […]

Tell a Button to Trigger a Menu

This posting explains how you can get a button to trigger a menu item when pressed using the “perform action” command.

Add a Toolbar

This posting shows you how you can add a toolbar in Interface Builder if you have OS X 10.5 Leopard and mentions some of the problems of this approach.

Responding to a Chosen Menu Item

This posting demonstrates how you can respond to a chosen menu.

Responding to a Clicked Button

More basics. After you create an button in Interface Builder, in the last tab of the inspector give it a name, select the applescript in your project where you will be adding the script for the button, and then give it an event handler by checking Action: Clicked in the list of possible Event Handlers […]

Change the Contents of Text Fields

This is pretty basic, but we all need to start somewhere. To change the contents of a text field (any NSTextField, including Labels), simple issue this kind of command: set contents of text field “myTextField” of window “myWindow” to “Hello, World.” Make sure the “name” (not the “title”) of your target object (in this case […]

Center a Window

Found a useful posting at Coding AppleScript on centering windows in AppleScript Studio. tell every window to center I used this tip to figure out how to automatically center my splash window when the application first opens: on will open theObject if the name of theObject is “homeWindow” then tell theObject to center end if […]

New Applescript Blog

Is it just me, or are there very few weblogs out there for people trying to learn applescript? There are none, that I can find, which are dedicated to learning Applescript Studio. I am only an amateur when it comes to programming and I am new to applescript. However, when I’m not doing my historical […]