OK looks like I found a solution though it may be a bit clunky.
in the plugin itself I added the following code:
$this_page_up = $_SERVER[‘REQUEST_URI’];
if (strpos($this_page_up,”wp-admin”)) {
…. plugin code…
}
Basically if the wp-admin directory is not in the URI then the plugin is not run.
What is a better way?