<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Help with Macro expression with %ATTACH= string]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Help with Macro expression with %ATTACH= string of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Sat, 13 Aug 2011 11:15:35 +0300</lastBuildDateTag>		<item>
			<title>Help with Macro expression with %ATTACH= string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic10186/message33921/">Help with Macro expression with %ATTACH= string</a></b> <i>How to insert another Macro in an expression</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			<br />====quote====<br /><br />I'd suggest something like this:<br /><br />%Attach="C:\test\%ToFName%-_54.txt"<br />=============<br /><br />Thank you very much, not only for the solution but as I learned something new about TB<br /><br />Igor <br />
			<i>13 August 2011 11:15:35, <a href="http://www.ritlabs.com/en/forums/">Igor Tavella</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic10186/message33921/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic10186/message33921/</guid>
			<pubDate>Sat, 13 Aug 2011 11:15:35 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Help with Macro expression with %ATTACH= string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic10186/message33919/">Help with Macro expression with %ATTACH= string</a></b> <i>How to insert another Macro in an expression</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			That's because TB doesn't know that the macro ends at the underscore, so it considers ToFName_54 as the full macro and that macro doesn't exist and therefore it gives an emnpty string.<br />I'd suggest something like this:<br />%Attach="C:\test\%ToFName%-_54.txt"<br />The %- macro is intended to ignore line breaks in your templates, but it can be 'abused' to signal the end of a macro in cases like this. <br />
			<i>12 August 2011 20:10:29, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic10186/message33919/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic10186/message33919/</guid>
			<pubDate>Fri, 12 Aug 2011 20:10:29 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Help with Macro expression with %ATTACH= string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic10186/message33918/">Help with Macro expression with %ATTACH= string</a></b> <i>How to insert another Macro in an expression</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			<br />====quote====<br />Roelof Otten wrote:<br />That should work, as I had no .pdf available, I tried it with this macro:<br /><br />%ATTACH="C:\Test\%TOFNAME.txt"<br /><br />and that worked as intended.<br />=============<br /><br />Sorry I wasn't clear enough in my post above. Yes the string works correctly<br />like that ... but what the filename (PDF or other) is composed by another text<br />like:<br /><br />FileName_number.pdf<br />So the string should look like<br /><br />%ATTACH="C:\Test\%TOFNAME_54.txt"<br /><br />In this case I get an error like that:<br /><br />Couldn't find the file G:\..... .\.pdf<br /><br />Note that the result of %TOFNAME_54 is missing<br /><br />Igor <br />
			<i>12 August 2011 19:55:01, <a href="http://www.ritlabs.com/en/forums/">Igor Tavella</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic10186/message33918/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic10186/message33918/</guid>
			<pubDate>Fri, 12 Aug 2011 19:55:01 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Help with Macro expression with %ATTACH= string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic10186/message33917/">Help with Macro expression with %ATTACH= string</a></b> <i>How to insert another Macro in an expression</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			That should work, as I had no .pdf available, I tried it with this macro:<br />%ATTACH="C:\Test\%TOFNAME.txt"<br />and that worked as intended.<br />So the question that remains is how (or when) do you execute the macro?<br />I placed it in a reply template, that means that the addressee is known before the macro is executed.<br />However, when you execute the macro before the addressee is known, you won't get the proper file name.<br /><br />When the file can't be found, you get an error message, what message do you get? <br />
			<i>12 August 2011 19:35:30, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic10186/message33917/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic10186/message33917/</guid>
			<pubDate>Fri, 12 Aug 2011 19:35:30 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Help with Macro expression with %ATTACH= string</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic10186/message33916/">Help with Macro expression with %ATTACH= string</a></b> <i>How to insert another Macro in an expression</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			I looked around the forum for about 1 hour but I wasn't able to find a solution.<br /><br />What I want to do is something like that:<br /><br />%ATTACH="C:\Documents\... .\%TOFNAME.pdf"<br /><br />Before and at the end of %TOFNAME I inserted every kind of characters ("" %) <br />but it didn't work.<br /><br />Anyone can help<br />Thanks<br />Igor <br />
			<i>12 August 2011 18:34:05, <a href="http://www.ritlabs.com/en/forums/">Igor Tavella</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic10186/message33916/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic10186/message33916/</guid>
			<pubDate>Fri, 12 Aug 2011 18:34:05 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
