Copying certain objects from Illustrator CC2015 is slow

That is a good idea. And @Tom made an AppleScript in this post, which I could modify and use.
I do not use FastScripts, but the built-in Scriptsmenu, which can be activated in the settings of the ScriptEditor.

At first run this ApplesScript quits the KM Engine.
Then I can without problems copy and paste in/between Illustrator and InDesign.
When I run it again it sets the clipboard to nothing, before starting the KM Engine again.

I would like to thanks this extremely great forum for help to find a work-around. :grinning: :+1:

@peternlewis: A feaure-request is still to have an exclude list for the clipboard management of KM. But it is probably not easy to implement.

Toggle KM Engine.scpt.zip (3.0 KB)

# Orignal made by Tom from http://dflect.net/en/ and published on the Keyboard Maestro forum (https://forum.keyboardmaestro.com/t/making-km-more-accessible-for-non-geeks/3261/12)
# Modified to only Quit Keyboard Maestro Engine and before enabling it again it clears the clipboard.
# This is to help with an issue with Keyboard Maestro and Adobe Illustrator and Adobe InDesign discussed on this thread (https://forum.keyboardmaestro.com/t/copying-certaing-objects-from-illustrator-cc2015-is-slow/3134)
# Activate the scripts menu in the Scripteditor and put it there for easy access

property appsToShutdown : {"Keyboard Maestro Engine"}
property wasRunningBefore : {}

if application "Keyboard Maestro Engine" is running then
	
	set wasRunningBefore to {}
	repeat with i in appsToShutdown
		if application i is running then
			try
				set wasRunningBefore to wasRunningBefore & i
				tell application i to quit
			end try
		end if
	end repeat
	
else
	
	if wasRunningBefore is {} then set wasRunningBefore to appsToShutdown
	tell application "System Events" to set the clipboard to ""
	repeat with i in wasRunningBefore
		try
			tell application i to launch
		end try
	end repeat
	
end if

--log wasRunningBefore