Groups > WordPerfect Office > WordPerfect X3 > Re: Thunderbird and attachments




Re: Thunderbird and attachments

Re: Thunderbird and attachments
Thu, 17 Apr 2008 02:11:28 -040
I did get the macro working.
On the second macro that sends the two pdf files though I have run into 
a problem.

The Compiler will not accept the comma in the vAttachment line.


FileName=?SelectedText
nPath="C:\LifeModTest\Notes\"
cPath="C:\LifeModTest\Charts\"
vAttachment=nPath+FileName,cPath+FileName

//Note: The filename is the same for both paths.
Post Reply
Re: Thunderbird and attachments
Thu, 17 Apr 2008 12:23:38 GMT
Victor:
> The Compiler will not accept the comma in the vAttachment line.

No. As written, it is nonsense.

You need to keep clear the distinction between variables and 
text. Of course text is needed to specify a variable name; this 
is not text in the sense that PerfectScript should handle it as 
text.

It is not clear how the line should be arranged, since I do not 
know what the result should be.

vAttachment=nPath+FileName,cPath+FileName

might be better as

vAttachment=nPath+FileName + "," + cPath+FileName

and I do not know whether a comma is what is needed here - often 
a semicolon is used. But PerfectScript will compile either one. 
It will (at runtime) recognise the variables and because of the 
double quotes recognises "," as text.
-- 
Good wishes!
Roy Lewis
C_Tech volunteer
(UK)

Post Reply
about | contact