I'm wanting to grab an attribute from a title block (the title block varies in name, but the attribute is always the same name) and add it to the filename when plotting a pdf. Is this possible with a .lsp or .scr?

e.g. FILENAME.dwg REV0

I would want this to come out as FILENAME-REV0.pdf

I know you can use the layout tab name but I'm after a full proof way if possible for doing multiple drawings.