public final boolean isRunningHeadless() {
		return SystemUtilities.isInHeadlessMode();
	}
Returns whether this script is running in a headless (Non GUI) environment.
<p>
This method should not be using GUI type script calls like showAddress()

@return true if the script is running without a GUI.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java