Plist
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"?>
<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