Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. AppleScript Subroutines > Some Useful Subroutines

11.7. Some Useful Subroutines

It's time to practice what you've learned. In this section, you're going to build a series of subroutines that will make you more productive. Feel free to start your own libraries using these subroutines.

11.7.1. Subroutine 1: Create a folder

The first subroutine you'll work on is a simple one that creates a new folder. You'll be able to use this kind of subroutine in a lot of different ways and situations. For example, you could simply state in a script where you want a folder created, and hardcode the name of the new folder. Or you could ask the user for a new folder name and a destination and then use that information to create your new folder, just like you did in Chapter 9.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint