Re: how to check for file in the user's Documents
Re: how to check for file in the user's Documents
- Subject: Re: how to check for file in the user's Documents
- From: Stephane Sudre <email@hidden>
- Date: Sat, 28 Jul 2012 13:29:49 -0700
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 <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden