Re: Condition %AttachFile
Hi Anirban, @20-Jun-2003, 15:27 +0530 (10:57 UK time) Anirban Das said > %if:"%AbTOCountry"="a":"%qinclude=^a^":""%- ... > %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":""%- > %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':'' > I tried using the above in 1.62r. None of the option worked :-( Okay, let's try another approach. Instead of this, set the Country (or better, the Memo) field to -intl where required and then simply use this in the Template: %attachfile="d:\temp\acentres%- %ABTOMemo%- .xls"%- This is easily extended without having to modify the template, just the address book entries. -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.63 Beta/11 on Windows XP 5.1.2600 Service Pack 1 http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Condition %AttachFile
On Friday, June 20, 2003, at 15:27:52 [UTC+0530] (Friday, June 20, 2003 11:57 my local time) Anirban Das wrote: > Option -1 [...] > Option -2 [...] > I tried using the above in 1.62r. None of the option worked :-( I think you did make an error somewhere. To use mass mailing option from address book you should prepare suitable quick template. In this template you should use the lines from option 1 or 2, among other macros or texts which create the text of your message. You must also check option "Use for New messages/Mass mailing" in this quick template. That's all! Mass mailing from Address Book menu operates perfectly in 1.62 or 1.63 versions of TB! Do you have correctly named countries in your Address Book? They should be the same as ones used in template (for example, if "PL" is a country name in Address Book, then your expression in template should be: %if:"%AbTOCountry"="PL":...etc.). -- Best regards, Zygmunt Wereszczynski (Using The Bat! v1.63 Beta/11 on Windows 95 4.0 Build b) http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Condition %AttachFile
Option -1 - %if:"%AbTOCountry"="a":"%qinclude=^a^":""%- %if:'%AbTOCountry'='b':'%qinclude=^b^':'' Option - 2 - %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":""%- %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':'' I tried using the above in 1.62r. None of the option worked :-( anirban http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Condition %AttachFile
On Thu 19-Jun-03 10:43am -0400, Bill McCarthy wrote: > I'm running the gild (1.62r). I'll try this exercise with the beta. In the Beta, I have no problem using a conditional %AttachFile - no helper %QInclude is required. -- Best regards, Bill "Vain things!--as lust or vanity inspires, The heaven of each is but what each desires." [Thomas Moore] http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Condition %AttachFile
On Thu 19-Jun-03 8:47am -0400, Marck D Pearlstone wrote: > ,--/ a \-- > | %AttachFile=_c:\a.txt_ > `-8<- > > %If:"2"="2":"%QINCLUDE=_a_":"2 <> 2"%- > It works. Hmm, it didn't work here. I even copied and pasted your '%if' as my only line in the template. The new mail came up empty with no attachment. Of course, a made the attachment. I'm running the gild (1.62r). I'll try this exercise with the beta. -- Best regards, Bill "My mind is incapable of conceiving such a thing as a soul. I may be in error, and man may have a soul; but I simply do not believe it." [Thomas Edison, "Do We Live Again?"] http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Condition %AttachFile
Hi Bill, @19-Jun-2003, 08:30 -0400 (13:30 UK time) Bill McCarthy [BM] in mid:[EMAIL PROTECTED] said BM> In both tbudl and tbtech, Anirban Das <[EMAIL PROTECTED]> BM> presented a problem report. ... ... BM> %AttachFile=_c:\a.txt_%- %If:"2"="2":"2 == 2":"2 <> 2"%- ... BM> Now change the 2 line template by cutting the first line and BM> pasting it to replace the true clause in the second line: BM> %If:"2"="2":"%AttachFile=_c:\a.txt_":"2 <> 2"%- BM> Creating a new mail with this new template, the file is not BM> attached and no text is included in the new mail. BM> This appears to be an error - ... There is a workaround! (and yes, I agree, this is certainly unexpected behaviour). Create QTs called 'a', 'b', etc. as required: ,--/ a \-- | %AttachFile=_c:\a.txt_ `-8<- ,--/ b \-- | %AttachFile=_c:\b.txt_ `-8<- %If:"2"="2":"%QINCLUDE=_a_":"2 <> 2"%- It works. -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.63 Beta/11 on Windows XP 5.1.2600 Service Pack 1 http://www.silverstones.com/thebat/TBUDLInfo.html
Condition %AttachFile
Hello TB Tech List, In both tbudl and tbtech, Anirban Das <[EMAIL PROTECTED]> presented a problem report. Unfortunately, his code in both cases contain syntax errors, the use of the AB is unnecessary is illustrate the point, his use of multiple conditions obscures the problem and his use of "group mailing" further obscures the issue. Let's start over. Assume I have a file c:\a.txt. I create a New Message Template which contains this: %AttachFile=_c:\a.txt_%- %If:"2"="2":"2 == 2":"2 <> 2"%- Creating a new mail with this template, the file is attached and the new mail contain the text "2 == 2" as expected. Now change the 2 line template by cutting the first line and pasting it to replace the true clause in the second line: %If:"2"="2":"%AttachFile=_c:\a.txt_":"2 <> 2"%- Creating a new mail with this new template, the file is not attached and no text is included in the new mail. This appears to be an error - the true clause is executed, but nothing is being attached. We can assure ourselves that the true clause is indeed being executed by changing the template to this: %If:"2"="2":"2 == 2%AttachFile=_c:\a.txt_":"2 <> 2"%- No file is attached and the new mail says "2 == 2" showing that the true clause was executed. -- Best regards, Bill "The past belonged to religion. The future belongs to science." [Coleman Smith] http://www.silverstones.com/thebat/TBUDLInfo.html