Page 1 of 1

Tool enhancement

Posted: Fri Mar 14, 2008 1:20 pm
by NaasDup
Hi

In the Preferences/General settings is an option to run multiple instances of Textpad or not. I have created some tools to use $Sel as parameter
as to open the file I have selected in a document, like stylesheets mention in html or includes in asp. Problem is I would like to open that document in the same TextPad session and not a new one which is what is happening.

Would it be possible on the Tools screen when you create a new tool in Textpad pointing to Textpad itself as the program, to add an additional checkbox to select whether this tool - in this case Textpad itself - will open as a new instance or not.

Either this or provide the ability to open the filename listed in a document.
In UltraEdit you only have to put the cursor on a File and it would open the file.

Thanks
Naas

Posted: Sat Apr 12, 2008 7:50 pm
by drefty
1) Ability to force single Textpad instance.

Preferences :: General :: Allow multiple instances to run (turn this off)

You're saying that you already tried the above, and it does not work?

2) Ability to open filename in a document

see the following:
http://forums.textpad.com/viewtopic.php ... t=filegoto
http://forums.textpad.com/viewtopic.php ... t=filegoto

Posted: Sat Apr 12, 2008 8:17 pm
by NaasDup
Hi Drefty

No that is not what I am saying. I am requesting that the Tools screen have a similar setting where in the event that you call TextPad self as a TOOL that you will be able to launch TextPad either within the current TextPad instance or create a new instance of TextPad.

Posted: Sun Apr 13, 2008 2:40 am
by Bob Hansen
This may be a case where the "-m" parameter will be useful.

Set the TextPad option to not allow multiple instances.
Configure/Preferences /General/Allow multiple instances to run = YES

If the tool calls "TextPad.exe", then it will open in the same instance.
But if the tool calls "TextPad.exe -m", then a new instance will open.

Does that work for you?