Basics of AppleScript

Folders

Let’s take a simple example on how to select a folder.

Script [12.1.1]: choose folder

Explanation: A window will pop up allowing user to select the folder he wishes to select. The result tab will show path to the folder.

Figure 12.1.1

Figure 12.1.1-2

Figure 12.1.1 Choosing a Folder

The folder path in result tab is shown as follows:

hardDiskName:folderName:subFolder: