(plist, key, value)
Sets the value for a given key in a plist.

  Args:
    plist: plist to operate on
    key: key to change
    value: value to set
  Returns:
    boolean: success
  Raises:
    MissingImportsError: if NSMutableDictionary is missing
Sets the value for a given key in a plist.
Sets the value for a given key in a plist .
def SetPlistKey(plist, key, value):
  """Sets the value for a given key in a plist.

  Args:
    plist: plist to operate on
    key: key to change
    value: value to set
  Returns:
    boolean: success
  Raises:
    MissingImportsError: if NSMutableDictionary is missing
  """
  if NSMutableDictionary:
    mach_info = NSMutableDictionary.dictionaryWithContentsOfFile_(plist)
    if not mach_info:
      mach_info = NSMutableDictionary.alloc().init()
    mach_info[key] = value
    return mach_info.writeToFile_atomically_(plist, True)
  else:
    raise MissingImportsError('NSMutableDictionary not imported successfully.')
def SetPlistKey ( plist , key , value ) : if NSMutableDictionary : mach_info = NSMutableDictionary . dictionaryWithContentsOfFile_ ( plist ) if not mach_info : mach_info = NSMutableDictionary . alloc ( ) . init ( ) mach_info [ key ] = value return mach_info . writeToFile_atomically_ ( plist , True ) else : raise MissingImportsError ( 'NSMutableDictionary not imported successfully.' )