Script Bay Console Creative Suite Scripting Forum
Please consider registering
guest
John Hawkinson brought up a nice idea about adding a output area to Script Bay on the InDesign scripting forum. Basically, the idea would be to have some place where a script could output data similar to the ESTK javascript console.
I'm trying to figure out the best way to implement such a feature. I'd like to implement it in such a way where it would be there when you need it, but doesn't take away too much space from the script editor.
One idea I had was to make the script editor a vertically divided section where the bottom would be the console. The console would be able to be closed, so it would take away minimal space from the script editor when closed.
Another idea would be to make the console a drop-down area from a button somewhere around the editor area (probably on the top).
I'd love to hear opinions on how to do this!
3:53 am
03/06/2011
Hey, Harbs.
At least for my application, the output from these oneliners (maybe more like 3-liners because Javascript s such a broken language...) tends to be a lot bigger than the script itself. So of the two options you presented, having a vertically divided section sounds like the way to go. Perhaps when fully reduced, it just reverts to the standard bottom status line that Script Bay has right now.
Also key is the ability to easily edit what you're evaluating and run it again, without having to click a mouse button or somesuch.
For my workflow/brain, it makes much more sense for the output to appear beneath the evaluated expression that caused it. But some people's minds might think differently.
Oh, also, it is nice to have a history of what has been typed, just like the ESTK's (or Ruderman's Javascript shell). For those who didn't read the post, my idea was based on a desire to port Jesse Ruderman's JavaScript shell to InDesign. Try it in your browser, it's pretty neat!
The way I see it there are two fundementally different ways to go about this type of thing:
One method is a command line type of console which outputs directly into the same window. This is the way that the "javascript shell" works.
The second method is like the ESTK where the script editor and output is totally separate.
I see the ESTK way as more useful for script writing than a terminal window. It sounds like you're more interested in the first method.
Maybe I can make a toggle to convert the editor window to a terminal window and back. Hmm...
11:24 am
03/06/2011
Yeah, sure. And Cmd-R is of course the keybinding in the ESTK. Though I'm also quite fond of ENTER/RETURN if it doesn't break the UI violation. Over in UI land, it'd be nice if it was fairly discoverable (I don't think everyone knows they can hit Cmd-R in the ESTK...), but maybe that's not too important for the target market.
Most Users Ever Online: 197
Currently Online:
4 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
jacksonlame: 18
niftyix: 10
Ulrich Bogun: 9
jackferthomas: 8
Adrian: 8
Soyablack123: 7
Member Stats:
Guest Posters: 1
Members: 5982
Moderators: 0
Admins: 2
Forum Stats:
Groups: 3
Forums: 23
Topics: 279
Posts: 705
Newest Members: GfnwHITSlK, CTS Point, CdbfwYgAKr, WHQwfnJvpMkciRjG, nSVpYkTDbsjrw, John David
Administrators: In-Tools: 11, Harbs: 201