Interesting challenge from the "File exists" (JavaScript) point of view. An alternate solution would be to use a shell script requirement (simple if [ -f ]; blah blah fi script) to check for the existence of ˜/Documents/thefile. On Fri, Jul 27, 2012 at 9:08 AM, Ann K. Blombach <ann@macgamut.com> wrote:
My installer needs to check to see whether a file is already in the user’s Documents folder. How do I specify the Directory of the user’s Documents folder? ${HOME}/Documents works fine for unix commands, but not in PackageMaker using the “File exists on Target” requirement, but I don’t know how to specify the target) or Perl (searching for a file, but I need to know how to specify the Directory). All I need is the magic syntax that will do the same thing ${HOME}/Documents does in unix. Doesn’t matter whether it’s in PackageMaker or in Perl. Thanks.
-- Packaging Resources - http://s.sudre.free.fr/Packaging.html _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com