Printing to a postcript file from the print dialogue box, and when the "save as" box comes up, there is no file name in the file name line. What!?!?
I must have my postscript files match precisely my file name. How could this feature be gone?? I have to manually name my print file? That's like exporting a jpg but having to name your jpg each time...
UNBELIEVABLE!!!
I've seen that, too, and I agree that it's a huge annoyance. Of course, Corel should fix that.
I have a VBA macro that can copy the document title to the Windows Clipboard. You're welcome to try it if you wish.
It would still cost you a button click or keystroke to run the macro, then another to paste the copied text into the field of the print dialog.
I would love that Eskimo. What would the script be? Thanks in advance!
Rick said:I would love that Eskimo. What would the script be?
I created a blog post for it: #24 - Macro - Doc Metadata to Clipboard.
Try it out, and let me know how it works for you.
The name of the file isn't necessarily "metadata", but I added the capability to an existing macro.
As an aside...
You may notice when looking at the subs that there is one for a metadata string named, "LastAuthor".
If you clear the Author field and send the file to someone else, they could still - if they wanted to write one line of VBA code - see that you were the "LastAuthor".
Hooray for hidden information!
I'll give it a try sir!
Well I installed the macro but doesn't seem to work. I click the macro button and get a pop-up "Document metadata Title property is blank"...
I tried accessing it through the script editor and it requires a password...
Rick said:Well I installed the macro but doesn't seem to work. I click the macro button and get a pop-up "Document metadata Title property is blank"...
Which sub were you trying to run?
The one to copy the document Title - which is how I get either the filename or "Untitled-1", "Untitled-2", etc. - is doc_Title_copy_to_clipboard.
The sub named doc_metadata_Title_copy_to_clipboard is one that gets a metadata string that is named, "Title", which is something completely independent of the document Title. If you haven't specified a value for that in the document, then you'll get the "property is blank" message when using that sub.
That worked~!
Rick said:That worked~!
Super!
The naming for one of those subs may seem goofy, and it's because I'm following the naming that is used in the API. That's why the dialog shows "Tags", but my macro sub shows "Keywords". In the API, it's Document.Metadata.Keywords.
The reason that I am using the document Title rather than the FileName is because Title can get the filename (if the document has been saved) or "Untitled-1" or similar (if the document hasn't been saved). In contrast, FileName doesn't get you anything until the document has been saved.
The fact that there are both Document.Title and Document.Metadata.Title is another possible source of confusion.
If you are going to use that one sub a lot for getting the filename for PostScript files, just put it on a button somewhere convenient, or assign a keyboard shortcut to it.
Eskimo, I am having trouble again with your macro for copy title... It works fine, however each time I close corel, it disappears. I have to re "load" it into my script docker... Any way to get this marco to "stay" and load automatically each time I open corel? Sorry for troubles and thanks in advance.