Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A set of free scripts to help manage binary plist files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A set of free scripts to help manage binary plist files
Authored by: kholburn on May 29, '05 08:09:02PM
I had a look at these scripts and there are some things I really don't like about them:
1) The installer puts them in /usr/bin, not /usr/local/bin meaning they could get wiped in a system upgrade.
2) They use perl when it's hardly necessary.
3) They don't use any perl checking when they could easily.
4) pledit had an uninitialised variable.
5) The edit command does not use mktemp and could be a potential vulnerability (alright in a hazardous environment, but why not write it right)
6) Once in the editor you can't get out of it and the file gets written anyway.
I made a shell script which fixes those things here. No installer, you put it where you like (say on your path) and make symbolic links to it with different names:
cp plcat ~/bin
cd ~/bin
ln -s plcat pledit
ln -s plcat plmore
ln -s plcat plless




[ Reply to This | # ]
A set of free scripts to help manage binary plist files
Authored by: SSteve on Jun 23, '05 04:45:15PM

Thanks for the improved script. I installed it and it works fine except for one minor issue. When I run plless or plmore, after the last line of the file is the message "/dev/stdout: Operation not supported". But it doesn't seem to have any detrimental effects.

I'm running Tiger 10.4.1.



[ Reply to This | # ]