ShadowKiller.app
In normal use, toggling between its two states ( 1) shadow killed and 2) shadow not killed) is accomplished by double-clicking on ShadowKiller.app. Although not scriptable, the same result can be accomplished in AppleScript with the simple command 'tell application "ShadowKiller" to launch'. Each time invoked, that command causes "ShadowKiller" to toggle, which makes sense to me.
What I'm looking for is some way (in AppleScript) to determine which state "ShadowKiller" is in at a given moment in time -- something like 'exists application process "ShadowKiller"' (but that doesn't work, always returning true). Using a Terminal command would certainly be acceptable.
Any ideas?
MAC pro, Mac OS X (10.4.11)