protected void chooseDiscaredEditorChanges() {
		String title = GhidraScriptEditorComponentProvider.FILE_ON_DISK_CHANGED_TITLE;
		OptionDialog fileChangedDialog = waitForDialogComponent(OptionDialog.class);
		assertNotNull("Could not find dialog: " + title, fileChangedDialog);

		final JButton button = findButtonByText(fileChangedDialog,
			GhidraScriptEditorComponentProvider.DISCARD_CHANGES_TEXT);
		runSwing(() -> button.doClick());

		waitForSwing();
	}
Run the last script by pressing the last script button and return output.

@param taskName name for the task listener
@return script output written to the console
@throws Exception on failure, e.g. timeout
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/AbstractGhidraScriptMgrPluginTest.java