Hot Door CORE Forum
version check on startup: user options - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: version check on startup: user options (/showthread.php?tid=185)



version check on startup: user options - Rick Johnson - 09-15-2018

After following Hot Door's advice on checking versions on startup, it dawned on me that I could take it one step farther and address the occasions where there's a new version of Illustrator that may be compatible with the plugin. This is especially helpful when a new version of Illustrator has just been released, but we can't update our plugins until a CORE update is available, and an existing version of our plugin works (or works well enough for a temporary workaround) in the new Illustrator release.

On startup, my plugins compare their compile version with the host app's, and if the host is newer it checks for a saved preference that addresses that situation. If there is no preference, it displays a dialog warning the user of the incompatibility and offers a choice of ignoring the plugin or loading it anyway. It then responds accordingly and saves the setting.

I hope that's useful to others!