Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“Folder_Watching.zip”, 73.2K)
Download Sample (“Folder_Watching.dmg”, 132.1K)



Description

These applications demonstrate how to write a background task which uses Apple events to pass on task related information to another application. The 'Folder Watcher FBA' application runs in the background with no user interface. This type of application is known as a 'Faceless Background Application' (FBA), a 'Background Only Application' (BOA), or a 'Daemon'. The 'Folder Watcher FBA' watches folders for changes, if there is a change it sends an Apple event to the 'FW Receiver' which notifies the user through the Notification Manager and keeps a list of file/folder changes. The 'Folder Watcher Script App' is supplied as a scripting alternative to writing an FBA. 'Folder Watcher Script App' is a AppleScript script application which notifies the 'FW Receiver' of changes by sending AppleScript subroutine Apple events. Requires: System 7.1, AppleScript Keywords: background-only applications, PBCatSearch, AppleScript subroutines, Apple Events

Document Revision History

Date Notes
2003-01-14Demonstrates how a background only application can use Apple events to pass work to another application.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.