Jump to content
Sign in to follow this  
BrammersUK

Condensing Lines in Edit Script Window

Recommended Posts

Just a quick idea for the Wish List...

 

I know that most of the time I try to break my scripts up into smaller sub-scripts to aid efficiency, and to promote 'best practice' etc, but occasionally (mainly during complex script development) I find it easier to write everything in one big script, if nothing else, it's much easier to debug when it isn't calling sub-scripts with x number of ScriptResults and ScriptParameters etc etc... Once it all works, then I break it down...

 

With this in mind, is it possible to be able to 'condense' lines of the script, similar to the code window in something like DreamWeaver?

 

It'd be very helpful when writing and fixing problems to be able to select a whole If / Else If / End If part of the script, and condense it, so it makes everything else easier to read / track etc...

 

So instead of -

 

1

2

3

4

5

6

7

8 etc

 

you could have

 

1

2

3-7 (condensed / hidden)

8 etc

Share this post


Link to post
Share on other sites

This would be a great feature. Condensing if/then blocks and loops would be great. I haven't found a way to do it either.

Share this post


Link to post
Share on other sites

For this, you need to make separated scripts:

 

A new script that encompasses the script-steps from 3 to 7 like this:

 

"My new condensed script":

line 3

line 4

line 5

line 6

line 7

 

The original script reduced, you need add the script-step "perform script":

line 1

line 2

perform script "My new condensed script"

line 8

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.