<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Automate send attachments]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Automate send attachments of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Thu, 31 Mar 2005 21:35:21 +0300</lastBuildDateTag>		<item>
			<title>Automate send attachments</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic1138/message4876/">Automate send attachments</a></b> <i>Send selected files to a address</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			<br />====quote====<br />fld_name="C:\Program Files\The Bat\Outbox"<br />=============<br />I think you should write "Outbox" only.<br /><br /><br /><br />====quote====<br />email = other<br />=============<br />you shoud write steve's email &nbsp;<br />email = "steve@host.com"<br /><br />And from template <br />(Hello, %IF:"%ABTONAME"="":"%TOFName":"%ABTONAME")<br />addressbook entries will be used. <br />
			<i>31 March 2005 21:35:21, <a href="http://www.ritlabs.com/en/forums/">Иван Болховитинов</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic1138/message4876/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic1138/message4876/</guid>
			<pubDate>Thu, 31 Mar 2005 21:35:21 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Automate send attachments</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic1138/message4875/">Automate send attachments</a></b> <i>Send selected files to a address</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Thanks for help<br /><br />Fill header part of file tb.vbs with your local paths and names<br /><br />C:\Program Files\The Bat! is TB folder<br />All data is stored in &lt;default&gt; -(don't know where TB stores it)<br />My attempt at filling out header information<br />======================================================<br />acc_name="Sigi & Denneise" <br />fld_name="C:\Program Files\The Bat\Outbox"(outbx in &lt;default&gt; ) <br />subj = "%ATTACHMENTS" &nbsp;<br />tpl_file="C:\Program Files\TheBat\att.tpl"<br />need_pack=0 <br />email = other 'set: "" - ask email, other will be placed in "TO" want to send to'steve'<br />rar_exe = "C:\TotalCommander\Util\RAR\Rar.exe"<br />temp_folder = "c:\Temp\"<br />======================================================<br /><br />'steve' is an entry in adress book<br />it has an associated message template<br /><br />How do &nbsp;I associate address book entries ('steve') with the 'tb.vbs' file you gave me<br /><br />Kind Regards<br />Sigi <br /><br /><br /><br /><br /><br /> <br />
			<i>31 March 2005 15:16:19, <a href="http://www.ritlabs.com/en/forums/">Sigi Riedel</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic1138/message4875/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic1138/message4875/</guid>
			<pubDate>Thu, 31 Mar 2005 15:16:19 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Automate send attachments</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic1138/message4853/">Automate send attachments</a></b> <i>Send selected files to a address</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			It's possible.<br /><br />Create two files with following content<br /><br />File - tb.vbs<br /><br />====quote====<br /><br />'=========================================================<br />acc_name="my_account" 'here is account name<br />fld_name="Outbox" 'here is folder name<br />subj = "Here some files to send" 'here is the message subject<br />tpl_file="C:\APack\TheBat\_Test\att.tpl" 'path to template file<br />need_pack=1 'set: 0 - do not pack, 1 - pack with rar<br />email = "" 'set: "" - ask email, other will be placed in "TO" field<br />rar_exe = "C:\APack\TotalCommander\Util\RAR\Rar.exe" 'path to RAR<br />temp_folder = "c:\Temp" 'path to temp folder<br />'=========================================================<br /><br />set WSHShell = WScript.CreateObject("WScript.Shell")<br />tb_exe = WSHShell.RegRead("HKCU\Software\RIT\The Bat!\EXE path")<br /><br />Command = tb_exe & " /MAILU=" & acc_name & ";F=" & fld_name & ";S=""" & subj & """;"<br /><br />if email = "" then <br /> &nbsp;email = InputBox("Enter Email") <br /> &nbsp;Command = Command & "TO=""" & email & """;"<br />else <br /> &nbsp;Command = Command & "TO=""" & email & """;"<br />end if<br /><br /><br />set fso = WScript.CreateObject("Scripting.FileSystemObject")<br />set file = fso.OpenTextFile(temp_folder & "tb_files_to_send.txt", 2, true)<br />set Args = Wscript.Arguments<br /><br />if need_pack=1 then<br /> &nbsp;arc_file = temp_folder & "files.rar"<br /> &nbsp;if fso.FileExists(arc_file) then <br />	fso.DeleteFile(arc_file)<br /> &nbsp;end if<br /><br /> &nbsp;pack_command = rar_exe & " a " & arc_file<br /> &nbsp;for i=0 to args.count-1<br /> &nbsp; &nbsp;pack_command = pack_command & " """ & args(i) & """" <br /> &nbsp;next<br /> &nbsp;file.WriteLine "files.rar" <br /> &nbsp;for i=0 to args.count-1<br /> &nbsp; &nbsp;file.WriteLine "- " & args(i)<br /> &nbsp;next<br /><br /> &nbsp;WSHShell.Run pack_command, 1, true<br /> &nbsp;command = command & "A=""" & temp_folder & "files.rar" & """;" <br /> &nbsp; &nbsp;<br />else<br /> &nbsp;for i=0 to args.count-1<br /> &nbsp; &nbsp;command = command & "A=""" & args(i) & """;" <br /> &nbsp; &nbsp;file.WriteLine args(i)<br /> &nbsp;next<br />end if<br /><br />Command = command & "T=""" & tpl_file & """;"<br /><br />WSHShell.Run command, 1, false<br /><br />=============<br /><br />file - att.tpl<br /><br /><br />====quote====<br /><br />Hello, %IF:"%ABTONAME"="":"%TOFName":"%ABTONAME"<br /><br />See files attached:<br />%PUT="c:\Temp\tb_files_to_send.txt"<br /><br />-- <br />Best regards,<br /> %FromFName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mailto:%FromAddr<br /><br />This is automatically generated message from The Bat! v.3<br />%BCC="" %BCC="%ABTONAME &lt;%TOADDR&gt;" %TO="" %TO=%BCC %BCC=""<br /><br />=============<br /><br />Fill header part of file tb.vbs with your local paths and names.<br /><br />Correct template file(att.tpl) if you need.<br /><br />Place file in "Send To" folder to have this command in right-click menu in Total. &nbsp;<br />Place tb.vbs in your Total's toolbar and choose proper icon for it. <br /><br />All questions and suggestions are welcome.<br /><br />P.S. Sorry for strange symbols in my name and for my bad english.<br /> <br />
			<i>30 March 2005 07:47:01, <a href="http://www.ritlabs.com/en/forums/">Иван Болховитинов</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic1138/message4853/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic1138/message4853/</guid>
			<pubDate>Wed, 30 Mar 2005 07:47:01 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Automate send attachments</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic1138/message4851/">Automate send attachments</a></b> <i>Send selected files to a address</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hello <br /><br />Currently I use Total Commander (TC) file manager.<br />It allows you to create buttons which activate commands<br /><br />What I would like to do<br /><br />1 Select the files I want to send as attachments in 'TC'<br /><br />2 Press button to call &nbsp;'thebat message editor'<br /> &nbsp;The button would contain the send to address<br /><br />Is this possible<br /><br /> Regards &nbsp; <br />
			<i>30 March 2005 06:54:21, <a href="http://www.ritlabs.com/en/forums/">Sigi Riedel</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic1138/message4851/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic1138/message4851/</guid>
			<pubDate>Wed, 30 Mar 2005 06:54:21 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
