Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Apple > Operating Systems

  • Print
  • + Share This
From the author of Creating an AppleScriptObjC Project

Creating an AppleScriptObjC Project

Start by launching Xcode, located in your /Applications folder. If the template selection panel doesn't appear by default, select File > New > Project to show it. This panel displays the different types of projects that Xcode can create. For this tutorial, choose OS X > Application > Cocoa-AppleScript Application (see Figure 2).

Figure 2 Creating an AppleScriptObjC (Cocoa-AppleScript) application in Xcode.

Click Next to begin specifying the initial configuration options for your project. Begin by entering a product name, such as HelloWorld. Then, if desired, adjust the organization name and company identifier (see Figure 3).

Figure 3 Specifying options for a new AppleScriptObjC application in Xcode.

The company identifier should be a reverse-URL-formatted ID, which can be used by the operating system to identify your apps (such as com.yourcompany). When your app is built, its name is appended to your company identifier in order to create a unique application ID (for example, com.yourcompany.yourproductname).

When you're finished configuring your project's options, click Next, choose a location to save the project, and click Create (see Figure 4).

Figure 4 Choosing a location for the AppleScriptObjC project.

The project is created and its Xcode window opens. The left pane of the project window, called the Project Navigator, displays a list of your project's files. This exercise focuses on two specific files: AppDelegate.applescript and MainMenu.xib (see Figure 5). As you begin creating more advanced AppleScriptObjC projects, you might work with other project files, but they fall outside the scope of this tutorial.

Figure 5 The primary project files used for this exercise.

  • + Share This
  • 🔖 Save To Your Account