Skip to content

Monthly Archives: May 2008

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 Development of this Weblog

Changes

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.

An AppleScript Replace Text Method

This posting offers a replace text method written by Bruce Phillips.

Matt Neuburg’s Advice on Declaring Variables

As I fiddle with AppleScript Studio, I have been reading AppleScript: The Definitive Guide, 2nd Edition by Matt Neuburg. Here is a piece of advice he offers after he explains the complexities of scope for properties, global, and local variables in chapter 10: The ideal way to manage scope, in my view, would be to […]

FaceSpan 5 and the HyperCard Dream

I admit it. I’m one of those lost HyperCard fans, sulkily roaming through the world awaiting the return of the Messiah. That is why I’m playing with AppleScript Studio, which, for an amateur like me is incredibly unsatisfying and nowhere near the ease and intuitive beauty of the old HyperCard or SuperCard environment (though SuperCard […]

Ruby for Scriptable Applications

I don’t like AppleScript, to be perfectly honest. However, its deceptively English-like language was something that reminded me of the HyperCard glory days of my childhood, which where the only reason a non-programming historian like myself every made me want to tinker with coding. I would love to really get good at languages like Python […]

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.

Search a String: Offset

This posting introduces the applescript “offset” command for searching strings.

For Loops in AppleScript: Repeat

This posting introduces the way to create loops in Applescript.

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 […]