This is the code:
LNDatabase db;
LNScriptLibrary lib;
session->GetDatabase(dbname,&db,server);
db.GetScriptLibrary(“MyLib”,LNSCRIPTLIBRARYTYPE_UNKNOWN,&lib);
lib.Open();
lib.Save();
This code always throws up the error on Save():
“Script library with the specified name and type already exists”