#1 2016-05-01 19:54

kunkel321
Member
From: Washington State
Registered: 2012-09-01
Posts: 38

[Idea] Options for GUI part of PascalScript dialog, or maybe snippets

This idea/request is prompted from the "pdf tags" thread.  My thought is to have some additional options in the dialog, such as (Replace|Prepend|Append) input from script.  Of course it occurs to me that most of the people who would use the script function would also be able to just add this stuff right to the script!  There are layman exceptions such as myself though smile  I image something like this as radio buttons below the script editor window.  What might be more sensible though, would be something like the little popup list in the RegEx dialog (the puzzlepiece icon).  Instead of inserting RegEx commands though, it would insert Pascal snippets.  Of course the ReNamer Pascal editor would have to be able to insert the snippet into the correct location, I guess.   I don't know enough about the Pascal tool to know if this is even a feasible idea...  It's just a thought. smile

Offline

#2 2016-05-04 14:35

kunkel321
Member
From: Washington State
Registered: 2012-09-01
Posts: 38

Re: [Idea] Options for GUI part of PascalScript dialog, or maybe snippets

Well, after reflecting on Andrew's reply here: http://www.den4b.com/forum/viewtopic.php?id=349&p=2 it occurs to me that introducing outside-of-the-script settings might not be as feasible as I had imagined....   For example, I had imagined adding an additional line of code that would tell ReNamer to add content as a 'prefix' rather than a suffix.  It wasn't an additional line of code though, it was a reordering of the code that was already present.   So if there was (for example) a radio button for prefixing, I guess it would conflict with the code that was already there.   I can imaging that trying to have a "script-builder" for any possible scenario would quickly become a large, complicated, bloated project.   Maybe the real answer is to just continue with the system that is already in place:  A simple lean GUI interface, but lots of example scripts in the wiki smile   Oh well.

Offline

#3 2016-05-04 16:38

Andrew
Senior Member
Registered: 2008-05-22
Posts: 542

Re: [Idea] Options for GUI part of PascalScript dialog, or maybe snippets

kunkel321 wrote:

I can imaging that trying to have a "script-builder" for any possible scenario would quickly become a large, complicated, bloated project.

You've come to the right conclusion. smile It would first of all be next to impossible to add options for all possible actions people might need to perform. That is precisely why the program is built the way it is - on one hand it has GUI options for specific actions that can be configured in limited ways, and on the other hand (which is what makes it such a truly powerful utility) it allows people who want to do something more to write their own code. Secondly, the following is simply not possible:

kunkel321 wrote:

Of course the ReNamer Pascal editor would have to be able to insert the snippet into the correct location, I guess.

The program cannot know where best to insert the code without some sort of ridiculously powerful AI to analyze what has already been written. All we can expect it to do is insert the code wherever the user wants (as I've suggested here).

Offline

Board footer

Powered by FluxBB