• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to check for file in the user's Documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: how to check for file in the user's Documents
      • From: "Ann K. Blombach" <email@hidden>
References: 
 >how to check for file in the user's Documents (From: "Ann K. Blombach" <email@hidden>)

  • Prev by Date: how to check for file in the user's Documents
  • Next by Date: RE: how to check for file in the user's Documents
  • Previous by thread: how to check for file in the user's Documents
  • Next by thread: RE: how to check for file in the user's Documents
  • Index(es):
    • Date
    • Thread