Jump to 0 top | 1 navigation | 2 content | 3 extra information (sidebar) | 4 footer | 5 toolbar


Content

Objective-C Method Name to AppleScriptObjC Method Name

Here is a Ruby script to convert Objective-C method names into AppleScriptObjC method names.

Add this script to your user scripts inside Xcode and give it a shortcut. Copy the method name from the Objective-C documentation and paste into your AppleScriptObjC file. Hightlight the code and execute the shortcut!

Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Objective-C Variable Declaration Tidier

I try to write neat, easy to read code and one pet peeve of mine is when variable declarations do not line up. This can be a difficult task as the project grows and more and more declarations are added. If you take the time to re-align them you start to look like Monk! This is a personal preference of mine so please do not take offense if you write code this way. :)


Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScriptObjC Simple Bindings

Shane Stanley from AppleScript Pro Sessions has kindly provided an example file using simple bindings in AppleScriptObjC. Here is a short video demonstrating how to set up the bindings for this file. Download the source project

Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScriptObjC in Xcode Part 5 - Converting ObjC to ASOC

AppleScriptObjC in Xcode Part 5 - Converting ObjC to ASOC Part 5 deals with reading and understanding the documentation and how to convert between Objective-C and AppleScriptObjC.
View post on AllanCraig.net
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScriptObjC in Xcode Part 4 - Saving, Updating & Deletin...

The final article for our "Book List" application has now been posted. Whew! It covers the last few things we needed to take care of; saving, updating and deleting. You can read it here.
View post on AllanCraig.net
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScriptObjC in Xcode Part 3 - Customized Templates

Part 3 of AppleScriptObjC in Xcode has now been posted. This tutorial covers modifying and creating custom Xcode templates. If you use Xcode very much this is a real time saver!
View post on AllanCraig.net
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Dual-Monitors on Snow Leopard

Has anyone noticed that in Snow Leopard you can drag folders, hard drives, files, etc. onto the desktop of your second monitor? I'd say this is pretty cool!
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScriptObjC in Xcode Part 2

Just posted an article at MacScripter.net on using AppleScriptObjC in Xcode. In this tutorial we build a "Book List" application using a table view.
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScriptObjC in Xcode Part 1

Just posted an article at MacScripter.net on using AppleScriptObjC in Xcode. This is the first of several articles to help people get started using the new framework.
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Managing Numerous Scripts using Services in Snow Leopard

I wrote an article for the unScripted section of Macscripter.net titled "Managing Numerous Scripts using Services in Snow Leopard" using the improved Services feature in Snow Leopard. I am very excited about Services and how this will change the way we manage and execute scripts.
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Snow Leopard AppleScript

Check out the AppleScript Release Notes and AppleScriptObjC Release Notes.
Big changes in Snow Leopard for AppleScript. No more AppleScript Studio but we get total access to Objective-C frameworks!
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Launch AppleScript Scripts From a Webpage Link

Have you ever wanted to get information out of a webpage and work with that information on your computer? There are several techniques that allow you to do this especially if you use Safari. Safari is fairly scriptable and you can execute JavaScript code from AppleScript to talk to the DOM in a Safari window. What do you do though when you use Firefox? Firefox has only one AppleScript command: OpenURL. This is great if the only thing you ever want to automate is opening Firefox to a specified url. Not likely!
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Spawn Safari Tabs with Page Links using JavaScript and Apple...

FileMakerToday.com is a FileMaker forum I visit frequently. I view the new posts area where posts from all the sub-forums are gathered together. Sometimes there are many links on the page and I want to look at each ones details without right-clicking on the link and choosing open in new tab. This script will do just that.

Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Matt Neuburg Book on Rb-Appscript

EDIT: Matt just released a major update covering the 0.5.2 rb-appscript. If you like Ruby and want to learn how to control scriptable applications on your Mac this book is a must read! It is currently in beta and freely available to view on the web. Check it out!
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Change a file's Creation and Modification Dates on OS X

Edit

There is a more full featured example of this on the Hamsoft website. Hank has added the necessary error checking and demonstrates how to use this tool from AppleScript. You may find it more useful!
A question came up on one of the forums the other day about how to change a file's creation and modification dates. They were using the /Developer/Tools/SetFile tool but were getting some odd results. I searched all over the internet but everything I found would not do exactly what was needed. For example. The command line utility touch using the '-tm' will change both the creation and modification dates to the same day but only if it is a date older than the current creation date.
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Creating a Blog Post Slug with TextExpander

I am testing out the blogging software MarsEdit. So far I really like it. One thing I noticed right off is that I have to create my slug line manually. This is a simple thing to automate using TextExpander so here is the snippet of code you need and how to implement it.

Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

TextMate - Extract AppleScript 'on' and 'to' Handlers

If you write much AppleScript you probably spend some amount of time traversing your code to see what handlers you have created that you can use. I use this snippet of code within TextMate as a command to list all the 'on' and 'to' handlers at the top of the page.

Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

AppleScript Studio - Resizing Table Columns Programmatically

Here is a simple way to resize table columns in AppleScript Studio programmatically.
Read the rest of this article...
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Becoming Productive in Xcode Videos Available!

Pragmatic Programmers just released a new series of videos, "Becoming Productive in Xcode", by Mike Clark.

I just finished watching them and they are awesome! I thought I was getting a lot out of Xcode but these videos showed me there is so much more.
Read the rest of this article...

  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Safari Selection to TextMate Document

This script extracts the current Safari selection, writes it to a file on your desktop called “tm.txt” and then opens in TextMate.

It is a simple script so customize to your liking. One thing I should note. If you try to open the selected text directly using the “mate” command you may find you have open shell sessions running in the background. Even using “> /dev/null/ 2>&1″ did not free the shell. It was only after I closed the TextMate window that the shell session closed.

Read this article on AllanCraig
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Saving Selected Text and URL From Safari to a File

One thing I do everyday is surf the web. I bet you do too. Sometimes I find information, snippets of code or just something useful and I would like to save that information for later use.

I use a FileMaker database to store this information and I extract the data from Safari using AppleScript. Since everyone does not own a copy of FileMaker, this example will demonstrate extracting the info from Safari and writing it to a file on your desktop.

Read this article on AllanCraig
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Command Line Utility to Make Files Executable

If you are like me and you make a lot of command line utilities then this script is for you. There are only a few steps to making an executable but this is exactly what makes it a good candidate for automation.

Read this article on AllanCraig
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Automated Full Project Backup in Xcode

I have been going through a lot of tutorials lately. One thing I have noticed is when things go wrong after a chapter or two it is difficult to get back to where you were when things were working.

I have been giving Subversion a go but it is not as easy as you would think to roll back to a previous version. Plus I have to remember to do it. Two or three builds later and the lightbulb goes off, “When was the last time I committed to the repository?” Not good.

Read this article on AllanCraig
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Open Files From PathFinder 5 in TextMate

Here is a script that will open the selected folder or files in PathFinder in our favorite text editor TextMate!

Read this article on AllanCraig
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Display Latest Hulu Shows with GeekTool

For those who like GeekTool here is one more way to put it to use. This script parses the Hulu page of each show you feed it and returns the newest shows available.

Read this article on AllanCraig
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Create @property, @synthesize & dealloc from Variable Declar...

One of the things we do a lot of in Objective-C 2.0 is outlet and variable declaration, synthesize and dealloc. Since this is a repeatable recurring event I thought I would add a little automation to the process.


Read this article
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Accessing Sqlite3 using AppleScript

Here is an easy way to get running quickly with Sqlite3 and AppleScript

  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings

Programming on the Mac!

Check out AllanCraig
This blog is mainly for programmers who use AppleScript, Ruby, Objective-C, Xcode and TextMate.

There are a few tutorials and growing sample code. When I do something that is useful for myself I will pass it along through this blog.

Let me know what you think. Your comments are very appreciated.

  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • No ratings
  • 0 ratings
Pages: 1 (1 - 29 / 29)