I made an application which is picking up an integer value from the user and as per that value, the 'StartInterval' key in the plist needs to be updated. If I simply do this: system("/usr/libexec/PlistBuddy -c \"set UpdateInterval 50 \" \"/Users/mksman/service/a.plist\"");
It works fine because I am sending in an integer value. However, if I replace 50 with say, buffer(which contains user's input), I receive an error that says Unrecognised Integer Format. Any suggestions on how to deal with this?