Is there any documented way for an external program to manipulate the Google Chrome bookmarks?
The bookmarks are stored in a "Bookmarks" file in the user data\default directory, looks like JSon or something to me (that's not important right now.)
However, is there any way I can inform Chrome that the file has changed?
Note: This is for Windows, and I'm looking for a way to programmatically make Chrome aware of my changes.
I tried the following:
- Edit the file manually
- Restart Chrome
The changes were present, but until I restarted Chrome, Chrome was not aware of my changes, and I assume strongly that if I edit the bookmarks inside Chrome before restarting, the external changes are lost.
So, is there a way for me to do this? Or do I have to just inform the user that unfortunately I have to close his Chrome installation, edit the bookmark file, and then restart Chrome?
The code is ultimately going to be written in C#, but unless you have/know of code that does this, the way to go about it should probably be language/runtime agnostic.
Also note that my current list of things that I want to automate are:
- Create a folder for some specific bookmarks
- Delete existing bookmarks in that folder
- Add new bookmarks to that folder
The purpose of this program is to automate setting up local copies of a web application we make, where support/testers can just run the program, pick the version of the program to set up and which database to connect it to, and then the program automates everything. I'd like for this program to add easy access to the applications as well.