Hi all, I just turned my husband onto Pocomail and we're wondering if there's a way to automate parts of an email he regularly sends to our three employees. What it needs to do is pretty simple:

1) Open a new email
2) Select from a list of three email addresses for the To: line
3) Insert a subject which changes with the name of the job
4) Take a number provided and multiply it by .20, then add the result to the original number and insert both figures into the email body -- something like:

The estimated folios for this job are {folios}. Please ensure you don't type more than {folios X .20 + folios} folios without first letting me know.

5) Leave the email open for further editing.

From looking around here and in Poco's scripts I've come up with the barebones of the code I think is needed, but I'm stuck on how to use variables and get this working.

MarkB wrote:PocoScript always rounds down, it seems. 15 divided by 4 = 3. If you need better rounding, you will have to fake it. ((15*10)/4 + 5)/10 = 4. But I'm no mathematician.

Interesting, we'll have to see how that affects things. We transcribe court hearings and the reason we stop our employees from typing more than 20% over the estimated folios is because we like to get approval for the extra cost. Otherwise we have angry customers calling to ask why their job cost double or whatever we estimated, and we wind up eating the difference.

It may just be easier to warn my husband that PocoScript rounds down. If a transcriber comes back saying they're about to go 20% over the estimated folios he always check with them to see how much of the job is actually left anyway.