I was able to boil your script down, to what I need. Works great in extendscript, but for some reason, only shows a portion of the image in photoshop and illustrator. This was happening even before i boiled it down. Thoughts?
ScriptUI does not behave consistently across CS apps or CS versions. It's just the nature of the beast. I use PSCS6/Mac as my canonical platform as things tend to work a bit better there than elsewhere. You can always restart/reboot/reset-preferences to see if that cleans things up.
The last thing I'm trying to do with it, is figure out if I can set a transparent background for the window. I also tried using backgroundColor, but was unable to set the attribute correctly...
I do not think you will be able to do this.
there is a lot to learn with Adobe scripting.
Agreed. And I've been doing this for nearly 10 years, now.
I also couldn't find reference to what DELTA_H is, I have a bunch of their PDFs, and googled, but couldn't find reference to this. I'm trying to be resourceful so I don't have to ask such remedial questions.
DELTA_H was a variable that I added to the script to prevent the preview image from taking up the entire screen. Since you aren't using the computations where that's needed, you can safely ignore it.