Script Bay Console Creative Suite Scripting Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Script Bay Console
03/06/2011
3:11 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

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!

03/06/2011
3:53 am
Avatar
John Hawkinson
New Member
Members
Forum Posts: 1
Member Since:
03/06/2011
sp_UserOfflineSmall Offline

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!

03/06/2011
5:05 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

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...

03/06/2011
5:07 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

John Hawkinson said:

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.

Would a KBSC work for that? (command/control R or something)

03/07/2011
11:24 am
Avatar
John Hawkinson
New Member
Members
Forum Posts: 1
Member Since:
03/06/2011
sp_UserOfflineSmall Offline

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.

03/07/2011
11:28 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

I can make the KBSC appear as a tool tip on the run button. Problem with return is that it's a line return in the editor... Return does run scripts that are selected in the script list section...

10/26/2017
7:45 pm
Avatar
kanter3
Member
Members
Forum Posts: 3
Member Since:
10/09/2017
sp_UserOfflineSmall Offline

Thanks a lot for this infoormations

I liked it

Forum Timezone: America/New_York

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