tell application "Adobe Illustrator" activate tell current document do script "delete unused swatches" from "Standardaktionen" end tell end tell
app.doScript("tell application \"Adobe Illustrator\" \n activate \n tell current document \n do script \"delete unused swatches\" from \"Standardaktionen\" \n end tell \n end tell", ScriptLanguage.APPLESCRIPT_LANGUAGE)