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

13.20. Exercises

  1. Modify the program that chimes the hour to also chime the quarter-hour. Be creative in how you chime each quarter hour. You should be able to distinguish 15, 30, and 45 minutes after the hour. One possibility is to download some Westminster chime audio from the Internet, install it in iTunes, and then play the appropriate quarter-hour song from iTunes.

    Install your program into the crontab so that it is executed every 15 minutes.

  2. Here's some documentation for a SOAP service at that provides a price quote for a book given its ISBN number:

    Sample Request envelope:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV=""
    <ns1:getPrice xmlns:ns1="urn:xmethods-BNPriceCheck" SOAP-
    <isbn xsi:type="xsd:string">0439139597</isbn>

    Write an AppleScript program that enables a user to key in an ISBN number for a book and looks up its price. Find the current selling price for this book, whose ISBN number is 0764574000.

  3. Examine the Image Events dictionary to see what capabilities it has for performing image manipulation. Then write a Folder Action script that will scale an image file added to a folder by 50%.

  4. Recall the File Me droplet from Chapter 10. That droplet took a list of files and filed them into various folders based on their extensions. Rewrite that program so that it works as a Folder Action instead of a droplet. Attach it to a folder called File Me on your desktop.

  5. Use the GUI Scripting example from this chapter to copy data from different applications into your program.


You are currently reading a PREVIEW of this book.


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


Start a Free 10-Day Trial

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