tags:

views:

159

answers:

0

OS X 10.5, packagemaker 3.0.3

I need to make sure an app is installed, which sets a folder in a specific location. I make a test:

File exists on system: ~/Documents/Scripts/Droppings/ReadMe.txt Also: ~/Documents ~/Documents/ I can set it to true or false, and no matter, what, it will still fail, always.

If I use a full path, it works: /Users/me/Documents/Scripts/Droppings/ReadMe.txt

Of course, I want others to be able to use this software, they they are not all called "me".

I have tried /Users/$USER/Documents/Scripts/Droppings/ReadMe.txt

echo $USER provides the correct usersname, and I have a postflight script that sends ENV >> ~/Desktop that is also showing $HOME, $USER, and all the rest working.

Here is a screenshot, what is the trick? http://dl.getdropbox.com/u/340087/Drops/12.19.09/pm-950fb5d2-174414.png

Editing in raw mode, I can see this:

if(!(system.files.fileExistsAtPath('~/bin') == true)) {

~/bin is there, I get an errors, with condition set to true or false.