The Mac Observer

Skip navigational links

You're viewing an article in TMO's historic archive vault. Here, we've preserved the comments and how the site looked along with the article. Use this link to view the article on our current site:
Monitor Your Mac with Folder Actions

TMO Quick Tip - Monitor Your Mac with Folder Actions

by , 7:30 AM EST, February 20th, 2006

Some application installers add items to your Library folder that you may not want to have, and there is the possibility that someone could try to trick you into installing something you would rather not have on your computer. With a little help from Mac OS X Folder Actions, you can take a proactive approach to defending your system and files.

Let's add a folder action to your StartupItems directory, so we'll know if any application installers add anything that will launch automatically when your Mac is turned on.

If Folder Actions hasn't already been enabled, we need to do that first. Here's how:

    - Launch Folder Actions Setup. It's in Applications > AppleScript > Folder Actions Setup.
    - Click the Enable Folder Actions check box.
    - Quit Folder Actions Setup.


Make sure Folder Actions are enabled.

Now let's attach the Folder Action to the StartupItems folder:

    - Navigate to your StartupItems folder. It's in the Library folder on your hard drive.
    - Control-Click (Right-Click on a two button mouse) the StartupItems folder and select Attach a Folder Action.
    - Select add - new item alert.scpt (The script should be at the top of the list.), and click the Choose button.


Use the StartupItem's contextual menu to add a folder Action.

Any time an item is added to your StartupItems folder, you'll see an alert dialog that can open the folder and highlight any new items.


The Folder Action Alert dialog.

Feel free to monitor other folders, too. If your Library folder has an InputManagers folder, that's a good one to attach this Folder Action to. Check the Library folder that's in your Home Directory. If you have an InputManagers folder there, be sure to attach this action to it as well.


Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/extension.inc) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 108

Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/extension.inc' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 108

Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/common.) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 110

Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/common.' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 110

Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/includes/bbcode.) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 112

Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/includes/bbcode.' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 112

Fatal error: Call to a member function sql_query() on a non-object in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 532

Recent Headlines - Updated May 26th

Sat, 10:30 AM
How-To - iOS: Using Siri & Find My Friends to Keep Track of your Friends & Family
Fri, 8:04 PM
Free on iTunes - 3 Free iOS Games - Zombies, Zombies, and More Zombies
7:35 PM
Rumor - What’s Black and White and Flat All Over? iOS 7
6:52 PM
Analysis - Japanese Rumor Says Apple Prepping Multicolor iPhone & iPhone 5S
5:32 PM
Apple’s 1984 ‘Blue Busters’ Marketing Video in Full
4:53 PM
Product News - Apple Drops Prices on Refurbished iPad 4 & iPad mini
3:44 PM
Computing with Bifocals - 2 Mac Tips for Moving Your Dock & Guarding Your Secrets
11:29 AM
Analysis - Apple Ads Stay Positive Despite Microsoft’s Negative Campaign
10:18 AM
News - AT&T Hits Customers with a New Administrative Fee
9:22 AM
News - Google, Facebook May be Facing Waze Bidding War
6:22 AM
TMO Quick Tip - Terminal: Using “lsof” When Files Won’t Delete
Thu, 9:31 PM
News - Judge Cote Likely to Side with U.S. Against Apple

The Mac Observer Reader Specials

  • Support TMO, Buy from Amazon, MacMall and The Apple Store

  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!