It's not every day that one gets the opportunity to pen an article about true love and technology. But in a few cases, true love and technology mix quite well.
I've found this to be especially true with two groups to which I belong: Apple junkies and ColdFusion developers. The first group feels like a secret club that continually wonders when the rest of the world will crash their party. The second group believes deeply in its chosen technology and consequently incorporates a fervent user community.
Until recently, it was difficult for most Apple users and ColdFusion developers to fit comfortably together. This all changed when Adobe (formerly Macromedia) released a version of ColdFusion MX 7 with official support for the Apple Mac OS X platform.
If you want to learn how to create dynamic websites, move ColdFusion to the top of your list. Simply put, ColdFusion is a very approachable language to learn. Users with an HTML background will love its tag-based structure; those without much programming experience will love its readability. ColdFusion developers also have reason to be excited about the availability of the language on a new platform. With ColdFusion support on Mac OS X, they can reach new markets with their application development that they could not before. That's a big advantage for the Mac web developer crowd.
This article guides you through the steps for running ColdFusion on your Macintosh. You'll also build a couple of sample ColdFusion pages that demonstrate just how easy it is to create ColdFusion pages within Dreamweaver and run them on your ColdFusion server.
Operating system: Apple Mac OS X (10.3.9 "Panther" or 10.4.x "Tiger" required)
Database server: MySQL (optional)
To get up and running, you need a few ingredients—primarily ColdFusion server and Dreamweaver. Luckily, both are available as free trial downloads on macromedia.com. The Dreamweaver trial is a 30-day full-featured evaluation copy. ColdFusion server is also a fully featured Enterprise Edition product for 30 days. After that time, the server switches to a single-user development version. You can continue to run the server locally for development without the need to purchase a commercial server license.
Optionally, you can download the MySQL database server to serve as a local data source. For this article, the MySQL server is not necessary.
Finally, download the files you'll build during the tutorial. I created them to help you learn how to use ColdFusion and speed the development process.
Use the following process to install ColdFusion on your Mac:
The next screen shows two options. Select the one called "Getting Started Experience, Tutorials, & Documentation." Later you will use a data source created during this step.
The second option installs a startup script that automatically launches ColdFusion server when the system starts. Select what you prefer and click Next.
Now go ahead and set up your ColdFusion installation:
Your default browser opens and displays the ColdFusion MX 7 Configuration and Settings Migration Wizard (see Figure 1). Enter the password you established in Step 12 above and click Login.

Figure 1. ColdFusion MX 7 Configuration and Settings Migration Wizard
You now see the Setup Complete screen in your browser. From here you can either go to the ColdFusion MX 7 Getting Started Experience screen or the ColdFusion Administrator. You can also access the ColdFusion Administrator from the Getting Started Experience screen (see Figure 2).

Figure 2. ColdFusion Getting Started Experience screen
If you don't have Dreamweaver 8 installed, go ahead and do that now. For your convenience, there's a download link for Dreamweaver 8 right on the ColdFusion trial download page.
The installation steps are relatively basic, with few options. Just double-click the installer, accept the license agreement, select the destination folder and drive, and click Install.
Setting up a site in Dreamweaver that incorporates ColdFusion pages is similar to how you set up a site for static HTML pages in Dreamweaver. The main difference lies in setting up the testing server for the site.
Follow these steps to set up a site with a testing server in Dreamweaver:
Now that you have set up the Dreamweaver site, you are ready to begin building ColdFusion pages with Dreamweaver.
Note: For more information about defining a site and entering the proper remote settings for it so that you can upload your files to a web server, read the following TechNote: How to Define a Site in Dreamweaver.
Your first dynamic page provides very basic functionality available in all application server languages—the dynamic page include. The following steps show you how to use the ColdFusion insert panel in Dreamweaver to insert a ColdFusion CFINCLUDE tag into your page:
On the Insert panel, click the pop-up menu and select CFML to show the CFML-related buttons on this panel (see Figure 3), which you'll need to incorporate standard ColdFusion functionality into your web page.

Figure 3. Selecting the CFML-related buttons on the Insert panel
Click the cfinclude button (see Figure 4). When you select this option, the Tag Editor dialog box appears and asks for the path for the included file.

Figure 4. The cfinclude button on the Insert panel
You've just created a simple call to include a snippet of HTML into your ColdFusion template. When you run index.html, ColdFusion will include the HTML in footer.html dynamically at runtime. Save your file and upload both index.cfm and footer.html to your testing server.
Now to build database access into your dynamic page. Over the next several steps, you'll use the Application panel in Dreamweaver to create a recordset that selects records from a database and places those records on the page:
This query creates a recordset on the page that you can output using the Bindings tab in Dreamweaver. The Bindings tab displays the individual fields accessible from this recordset.
Follow these steps to output these fields on the page:
Format the field as a date using whichever mask you prefer (see Figure 5).

Figure 5. Choosing a date mask from the Format column pop-up menu
Finally, to output more than one record from this recordset, add a repeating region to the page:
Time to test your page:
View the following URL in your browser:
http://localhost:8500/ColdFusionDemo/index.cfm
This page displays the included footer file and the dynamic data from the query output in the sidebar.
Congratulations! You've just created your first database-driven page using ColdFusion on a Mac.
As you can see, developing and testing ColdFusion applications on a Mac is easy. ColdFusion is a robust application server; what you've accomplished is just the beginning.
With a little digging around in the Application panel in Dreamweaver, you can explore all that is possible in a point-and-click environment until you become more comfortable with the ColdFusion language. The functionality ranges from user authentication to inserting and updating data in a database, all through a web page that requires little-to-no hand coding. What a great way to learn a language!
If you are an existing Dreamweaver user, jump in and try ColdFusion and learn how easy it can be to create database-driven, dynamic websites. Start out by visiting the Getting Started page in the ColdFusion Developer Center, and then see where your creativity takes you.