I've downloaded "ManicTimePluginTester_v1_4" and compiled my own photoshop plugin using regex I suggested earlier. Here is a code that does actual window title parsing:
Code:private string GetFilename(ApplicationInfo application)
{
// photoshop title looks like 'filename @ (ZoomLevel)% (LayerName, ColorMode)'.
// We are only after the first part, before the AT sign.
Match match = Regex.Match(application.WindowTitle, @"^(.*?) @ .*$");
if (match.Success)
{
return match.Groups[1].Value;
}
return null;
}
The output dll is only 5kb, and it works fine with tester. However, it's not working with ManicTime. Let me know if plugin interface is changed in 1.5.3 since this tester package looks outdated a bit.
I would like to provide some more plugins, for most adobe products just for starters.
However, there is another insight about CustomTitle plugin. It does a great job so well that I don't really know why we need separate plugins for each app. Plugins are much harder to maintain, longer to produce, etc. While CustomTitle rules are quick to update and work completely fine. You would have one big CustomTitle.txt with original rules installed within Program Files and one CustomTitle.txt in user folder, for user rules (which is preserved during program update). That would make separate plugins unnecessary. Our job would be just to maintain this one big CustomTitle.txt rules of Program Files, then anyone would have rare times creating their own rules.
Is there a serious reason to keep separate plugins?
Let me know, as I would like to assist with Documents Timeline.
Love MT!