You are here: PSPad forum > English discussion forum > How do you run scripts?
Posted by: magnus101 | Date: 2012-07-29 06:08 | IP: IP Logged
How do you run scripts?
I downloaded and placed in Script\JScript.
I am running windows 7. And I turned on WSH
I turned on WSH by
administrative tools -> Windows PowerShell and typed "set-executionpolicy remotesigned"
what else do I need to do?
thanks
Posted by: pspad | Date: 2012-07-29 08:56 | IP: IP Logged
Check if scripting in PSPad is enabled:
program settings / System
Scripts will be available under main menu Script item
Edited 1 time(s). Last edit at 2012-07-29 08:57 by pspad.
Posted by: Stefan | Date: 2012-07-30 20:42 | IP: IP Logged
magnus101:How do you run scripts?
I downloaded and placed in Script\JScript.
I am running windows 7. And I turned on WSH
I turned on WSH by
administrative tools -> Windows PowerShell and typed "set-executionpolicy remotesigned"what else do I need to do?
thanks
Please search the internet for an good WSH tutorial.
PowerShell is not WSH.
To run an script for PSPad-Scripting, the script
must be written for PSPad and contain some
information to add an entry to the Script-menu,
which in turn you can click to start the script.
Read the readme.rtf in the Scrip-subfolder
and there the "sample vb script".
Download some scripts from the PSPad homepage
and there from "PSPad extensions" page
to learn from them.
And there is still the great work of gogogadgetscott online: gogogadgetscott.info
- - -
If you want to run an script
not-related to PSPad-Scripting itself,
for example an MS-Batch, an PoSh or Python script,
or an VBS or JS not-related to PSPad-Scripting,
THEN go to menu
"Settings > Highlighter Settings... >
"your used language" > External Applications"
and add the interpreter of your used language.
(Right click the Application field to get
an list of available parameters/variables)
Then you can run the currently open script
from the "control tool bar" (see View > Toolbars)
- - -
If you want to run an script NOT currently open
you can add them as an tool at the favorite tab
of the Tool Panel (See View > Tool Panel)
Again you have to call your script with
the matching interpreter, if not set as default
in windowsTM.
HTH?
--
Stefan (pleased user since 1722)
Do you know you can spend Jan a beer? (click here)
Inofficial FAQs + Infos + Special Settings
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR