C# oblige Clusters to run when Grasshopper file is opened/ saved as

I have C# code in order to fetch the Grasshopper file path. When i do save as new Grasshopper file, the cluster keep showing the old file path until i press f5. Any possible code to add for automatic cluster run on document reload?


1.gh (8.5 KB)

The problem is that we use this cluster to save data in certain places. If cluster doesnt compile automattically, it will cause a mess.