Bambero wrote:
I made a simple shell script which uploads (to ftp server) curently
open file.
I'm using:
command.name.3.*=FTP put
command.3.*=put "$(FilePath)"
command.subsystem.3.*=0
command.mode.3.*=savebefore:1
but it will be nice to do this command after each save.
How familiar are you with the Lua interface? The Lua/SciTE interface
has an event OnSave() which is merely a Lua script function that is
automatically called after a file has been saved. I have not dabbled
with the Lua / SciTE interface for quite a long time, I may be rusty here.
You would have something like:
function OnSave()
os.execute("put \"" .. props.FilePath .. "\"");
return false;
end
os.execute() does a simple shell swap to run the program given as the
parameter to it.
props.FilePath is a Lua means to retrieve a SciTE property. If the
property have spaces or periods in its name use props[ "its.name.here" ]
The \" embeds a quote inside the string
April
--
Illiterate? Write for help
_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest