Motherboard Forums

Thread Tools Display Modes

plistbuddy error: Integer: Unrecognized format

Posts: n/a
      10-13-2006, 05:33 PM
Dear All,

Developing product for Mac OS X 10.3.x ppc,Mac OS X 10.4.x ppc and Mac
OS X 10.4.x Intel and need your expert comments for the following

I am using "PLISTBUDDY utility" to add/edit a firewall entry for my
product's Server through my script being run by my installer developed
using Packagemaker. Below is the code to add and set the firewall
entry; which works PERFECTLY FINE on Mac OS X 10.4.8 ppc and Intel but
fails on Mac OS X 10.3.9 (also fails on previous versions of 10.3.9)

sudo chmod 777 /Library/Preferences/
defaults write "/Library/Preferences/"
"firewall" -dict-add "My Server" '{ "Port" = (9001); }';

$plistbuddy -c "add :firewall:My\\ Product\\ Server:enable Integer"

$plistbuddy -c "set :firewall:My\\ Product\\ Server:enable 1"

$plistbuddy -c "add :firewall:My\\ Product\\ Server:editable Integer"

$plistbuddy -c "set :firewall:My\\ Product\\ Server:editable 0"

sudo chmod 444 /Library/Preferences/

On Mac OS X 10.3.x it shows folllowing error
"Integer: Unrecognized format"
but works well without any issues on 10.4.x ppc and intel.

On further digging i saw that it is able to recognize dictionary,
string, array but only fails to recognize "Integer". But To add the
firewall port , I need to add Integer entry only.

Can anybody please tell
1) Why is the issue coming only on Mac OS X 10.3.9 ? Why not similiar
issue on 10.4.x OS ?
2) How to resolve the issue ? Is there any alternative method?
3) Did anybody encountered similiar issue before also ? Please comment.

Please send your valuable suggestions / comments /useful pointers.

Thanks and Regards,
Rohit Dhamija

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tiger mpx , memory unrecognized wolfgang schneider Tyan 4 12-30-2005 12:03 PM
GX110 - trying to add a CD-ROM drive - getting "Unrecognized Device" Dell 1 08-06-2005 03:47 AM
GX110 - trying to add a CD-ROM drive - getting "Unrecognized Device" Dell 6 08-06-2005 02:08 AM
unrecognized pci device on optiplex gx400 Andy Fish Dell 3 08-09-2004 12:20 PM
Unrecognized memory cethiesus Shuttle 0 10-20-2003 12:59 AM

All times are GMT. The time now is 11:51 AM.

Welcome to Motherboard Point