Checking for file/folder exist with javascript

Posted by: xcarguy

Checking for file/folder exist with javascript - 02/22/11 07:55 AM

I'm trying to re-package Microsoft's office installer using Apple's packagemaker and I need to determine if Office 2008 or 2004 is already installed on the system before installing 2011. I'm using a result of java script as an installation requirement using system.files.fileExistsAtPath. This does not seem to work. No matter how I code the return boolean value it always fails. Does anyone have any tips on using this method as an installation requirement?