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
  • DownloadDownload
  • PrintPrint

8.4. Summary

In this chapter, you explored the two classes of objects that AppleScript uses to represent numbers: integer (used for whole numbers only) and real. You learned how to perform math and comparison operations on numbers, how to round real numbers to whole values, and how to generate numbers at random. You then put this knowledge to use by developing a custom command for rounding numbers to a given number of decimal places, a fun card game, and a simple timer program.

In the next chapter, you will learn how AppleScript represents another frequently used piece of everyday information: the humble date.


  

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