<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/</link><description>Recent posts to Run pythonscript outside npp</description><atom:link href="https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 13 Apr 2019 17:38:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/feed.rss" rel="self" type="application/rss+xml"/><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#c331</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;HI Thanks,&lt;/p&gt;
&lt;p&gt;I was able to wirte it and scripts works fine. Howeevr i need an help on one thing. Let suppose if i want to convert the files under the folder1 ( C:\A\folder1) and move those files to folder2 (C:\A\folder1\folder2) it worked fine. however at the same time next time scipt runs it is checking for the file even under folder2 which i don't want again......can you help on this to only serach files under folde1 and not subfolders.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sundeep</dc:creator><pubDate>Sat, 13 Apr 2019 17:38:53 -0000</pubDate><guid>https://sourceforge.net57564f602d72440f6170acd061f667521fd56dca</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#02b7/c0bc</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;No, I will not write your code for you. That's not how this works.&lt;br/&gt;
It's a simple change to the PythonScript config file startup option as noted in point 1 above.&lt;br/&gt;
Point 2 is not required.&lt;br/&gt;
Points 3 and 4 are self-explanatory as well.&lt;br/&gt;
Then, a simple, one-line Windows batch (command) file, and a simple Windows Task Scheduler task. There is ample documentation available for both.&lt;br/&gt;
The direction and guidance provided thus far should be sufficient.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave W.</dc:creator><pubDate>Mon, 01 Apr 2019 13:53:41 -0000</pubDate><guid>https://sourceforge.net95d8ba803c7b01853059ee534d725a7c7c929821</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#02b7</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Thanks for info, I have understood that Bat file need to point out to a specfific file (Baed on inital post).  How i could not able to point the same. PLease can you help me with the code.&lt;/p&gt;
&lt;p&gt;I Work on SAP, some files genereate from SAP and store in windows network path and file format is unicode, i hvave to change the format for all these files periodically.&lt;/p&gt;
&lt;p&gt;Since i never worked on python, can you please write a code in the file (for bat how to point out) and provide. Also am not sure, how to make chnages based on points 1 , 2&amp;amp; 3.Also please provide the code for that well (much appreciated). I have installed latest 7.6.4 npp only and i have add the  python script plugin and tested the script manually and it worked for me.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sundeep</dc:creator><pubDate>Mon, 01 Apr 2019 02:51:29 -0000</pubDate><guid>https://sourceforge.net59b7ce8b8a792ea132cb46789dca2f3cbf7fe8bf</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#8e58/eea2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Well, it appears I have a major problem here. I just got a new PC a week ago, Win 10 Pro 64-bit, I installed the latest version of Npp, and now I can't install PythonScript. Apparently all the plugin handling changed drastically at version 7.6.3, and I have version 7.6.4.&lt;br/&gt;
The old Plugin Manager fails to install it now, and the PythonScript MSI does not work any more. It appears to, it seems to install all the PS modules and folders, but then when Npp restarts it says, module GUP.exe is missing and can't load any plugins. It's been a good while since I messed with this stuff, so it may be a while before I get it all set back up properly. &lt;br/&gt;
There's a whole long discussion of the plugin 'problems' over in Npp Community I'm going to have to read through. I'll likely have to install PS manually I guess, if that's even possible now. I hope so.&lt;br/&gt;
I hate to make suggestions that I can't test myself, but at at any rate, I'll go ahead and say this.&lt;br/&gt;
I wrote the above narrative as a generalized approach to starting up ANY python script by simply double-clicking a batch (.cmd) file.&lt;br/&gt;
All YOU need to do however is set up a simple bat file that starts up Npp and points it to a specific PythonScript (.py) file. Then, all you need to do is create a Windows Task Scheduler task to kick off that bat file hourly.&lt;br/&gt;
DO NOT mess with "Threading" and timer. That is infinite overkill for this. And being new to Python, as you mentioned, just forget that for now. &lt;/p&gt;
&lt;p&gt;In the above narrative, points 1, 3, and 4  DO still apply (if those haven't changed in Npp as well, due to the Win 10 64-bit issues). I would imagine they are still OK. Also, the note about the GUI being visible or not should still be valid. &lt;br/&gt;
Hope this helps. I'll check back on it when I get up and going with PS again. Wish me luck... ;)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave W.</dc:creator><pubDate>Sun, 31 Mar 2019 20:40:06 -0000</pubDate><guid>https://sourceforge.netffa0720352568be17b72f0a237d503d9aeb5dc59</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#8e58</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks,  Please share the same. Muchappreciated&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sundeep</dc:creator><pubDate>Sun, 31 Mar 2019 19:01:32 -0000</pubDate><guid>https://sourceforge.net2cdefe47b862c6be49ed0eee43bb779798719d87</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#01eb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hey man. How ya doin'? ;)&lt;br/&gt;
I just woke up, but I did a cursory re-reading of that post and think it may be overkill for what you need. I think there's a simpler way. Lemme get some coffee in me and I'll be back.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave W.</dc:creator><pubDate>Sun, 31 Mar 2019 16:07:23 -0000</pubDate><guid>https://sourceforge.net8de18136d2abda086bd80157ef33214e5aea84ad</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/?limit=25#5812</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;HI Dave,&lt;/p&gt;
&lt;p&gt;Could you please explain in detail as i was bit confused. I am new to python.&lt;/p&gt;
&lt;p&gt;I want to run this script from noteapd++ periodically via bat file. Please suggest&lt;/p&gt;
&lt;p&gt;import sys;&lt;br/&gt;
from Npp import notepad&lt;/p&gt;
&lt;p&gt;filePathSrc="C:\Users\vnsan\Desktop\Unicode\" # Path to the folder with files to convert&lt;/p&gt;
&lt;p&gt;for root, dirs, files in os.walk(filePathSrc):&lt;br/&gt;
    for fn in files:&lt;br/&gt;
        if  fn&lt;span&gt;[-4:]&lt;/span&gt; == '.txt': # Specify file types, taking care to change the fn&lt;span&gt;[number]&lt;/span&gt; to correspond to length of the file's extension including the .&lt;br/&gt;
             notepad.open(root + "\" + fn)&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;          notepad.runMenuCommand("Encoding", "Convert to ANSI")
         notepad.save()
         notepad.close()
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sundeep</dc:creator><pubDate>Sun, 31 Mar 2019 07:30:56 -0000</pubDate><guid>https://sourceforge.net141f4322e931cb404601b51155b89fe789c7bb09</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The fuction of my script is indeed to automate some function that uses Notepad++. The script I wrote opens all the files in a folder path (writen in the script) and does some treatment using TextFX then closes all the files. I would like to do this with a simple double click on the script and not have to open Notepad++, browse through the menu then click on my script to only close Notepad++ right after.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">liloojedi</dc:creator><pubDate>Mon, 21 Sep 2015 07:12:33 -0000</pubDate><guid>https://sourceforge.net9c6ee059cbdc3f24dbe2235d570096ff0a888622</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;What is the function of this "pythonscript script", if not to automate some function in Notepad++?&lt;br/&gt;
What would be the point of running it outside of NPP?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave W.</dc:creator><pubDate>Sat, 19 Sep 2015 01:54:31 -0000</pubDate><guid>https://sourceforge.net0c3dd6ef069947dd02d8c13e3a18e5aea725934b</guid></item><item><title>Run pythonscript outside npp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/58b07a00/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;I would like to run a pythonscript script without having to open notepad++. Unfortunately, I get an "ImportError: no module names Npp" on execution. I have tried moving the script around without success.&lt;/p&gt;
&lt;p&gt;Thank you for guiding me into success.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">liloojedi</dc:creator><pubDate>Fri, 18 Sep 2015 15:21:29 -0000</pubDate><guid>https://sourceforge.net1cc27a40f516549d4d5637517ded0bd539aafd58</guid></item></channel></rss>