"If it turns out that President Barack Obama can make a deal with the most intransigent, hard-line, unreasonable, totalitarian mullahs in the world but not with Republicans? Maybe he’s not the problem."

That will return "Yep" if the folder exists, and "Nope" if the folder doesn't exist. You can put something else in place of the echo commands, if you want.

This, of course, isn't foolproof. If a user moves the folder you'll get "Nope" even if the applications exist elsewhere on the computer. Similarly, if someone deletes all the applications from that folder, or if they just create an empty folder named "Microsoft Office 2011" inside the Applications folder, the command will return "Yep". These scenarios are unlikely but possible.

You're welcome. I accept PayPal donations. ;o)

_________________________Subscribe to MacTech Live — Official Podcast of MacTech Magazine

"If it turns out that President Barack Obama can make a deal with the most intransigent, hard-line, unreasonable, totalitarian mullahs in the world but not with Republicans? Maybe he’s not the problem."

"If it turns out that President Barack Obama can make a deal with the most intransigent, hard-line, unreasonable, totalitarian mullahs in the world but not with Republicans? Maybe he’s not the problem."

Xplain's use of MacNews, AppleCentral and AppleExpo are not affiliated with Apple, Inc. MacTech is a registered trademark of Xplain Corporation. AppleCentral, MacNews, Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, MacTech Central, MacTech Domains, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corp. Sprocket is a registered trademark of eSprocket Corp. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.

All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.