• 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
Plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plist


  • Subject: Plist
  • From: Motti Saroka <email@hidden>
  • Date: Thu, 29 Dec 2011 00:56:45 +0200

Hi,

I have a problem, I need to load a Plist file that contain a "WatchPaths" tag which should point to user home directory, this Plist file should be generic and should match to different users, the problem is that I don't know the username before I am loading the Plist by launchctl, ideally is to use the tag "$HOME" or "~" whoch point to the user home directory from command line but MacOSX don't recognize these tags, what alternative way I should use in order to use the "WatchPaths" and point to a local user home directory.

The line bellow marked in red color explain the problem perfectly, There is no option to use $HOME or ~ but I still need a way to point to a file located in the user home directory.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.me.pytag</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>open /Applications/Chess.app/</string>
</array>
<key>WatchPaths</key>
<array>
<string>$HOME/Library/NDSPCShowServer</string>
</array>
</dict>
</plist>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Plist
      • From: James Bucanek <email@hidden>
    • Reading little endian and big endian in objective c
      • From: Waqar Ahmad <email@hidden>
  • Prev by Date: A question about NFS delay-write
  • Next by Date: Reading little endian and big endian in objective c
  • Previous by thread: A question about NFS delay-write
  • Next by thread: Reading little endian and big endian in objective c
  • Index(es):
    • Date
    • Thread