C:\Python27\python.exe "C:\Users\Public\Documents\Notepad++\PythonScripts\ClearReadOnly.py"
Process started >>>
Traceback (most recent call last):
File "C:\Users\Public\Documents\Notepad++\PythonScripts\ClearReadOnly.py", line 1, in <module>
for f in notepad.getFiles():
NameError: name 'notepad' is not defined
<<< Process finished.
================ READY ================
I have installed the latest version of PythonScript but no matter what I do it keeps giving me this error. Do I need to install anything else. Thanks for your help
It looks like you're trying to run the script from Python itself. You don't need to install (or use) Python to use the PythonScript plugin - it's a plugin like any other, and can be installed from the Plugin Manager. From there, you can click the menu item Plugins -> PythonScript -> New Script, name your script, and paste your code. Save it, and run it from Plugins->PythonScript->Scripts->
Hope that helps.
Dave.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get this error:
C:\Python27\python.exe "C:\Users\Public\Documents\Notepad++\PythonScripts\ClearReadOnly.py"
Process started >>>
Traceback (most recent call last):
File "C:\Users\Public\Documents\Notepad++\PythonScripts\ClearReadOnly.py", line 1, in <module>
for f in notepad.getFiles():
NameError: name 'notepad' is not defined
<<< Process finished.
================ READY ================
I have installed the latest version of PythonScript but no matter what I do it keeps giving me this error. Do I need to install anything else. Thanks for your help
Here is my code:
It looks like you're trying to run the script from Python itself. You don't need to install (or use) Python to use the PythonScript plugin - it's a plugin like any other, and can be installed from the Plugin Manager. From there, you can click the menu item Plugins -> PythonScript -> New Script, name your script, and paste your code. Save it, and run it from Plugins->PythonScript->Scripts->
Hope that helps.
Dave.
Thank you. I followed your instructions and it worked.