Override Source Folder & Metadata in a Compile Preset

ta
tammycravit
Posts: 20
Joined: Fri Oct 30, 2009 2:50 am
Platform: Mac
Location: Central Coast, CA
Contact:

Wed Oct 05, 2011 3:12 pm Post

So, I have a single Scrivener project for all of the books in what is intended to be a series. (There're 1.1 books in there so far :D) Under my Draft folder, I have a folder for each book, with the book's content in each. Right now, if I want to compile one or other book, I have to change the project metadata to the right book title, open up the Compile pane, pick the right source folder and compile preset (I have one for my tweaks to manuscript format, and one for my Kindle format) and click the button.

It would be really nice if I could override the project metadata in the compile preset, and also if I could set the source folder, ebook cover image, etc., in the compile preset. Then I could simply pick the "Book1 Manuscript", "Book 2 Kindle" or whatever preset as appropriate and everything would be done for me.

Warmly,
Tammy
Tammy Cravit, novelist and photojournalist
"Abuse of Discretion", Tessa Riley #1 (11/2011): Kindle, Smashwords
"Manifest Error", Tessa Riley #2, coming in early 2012
http://www.tammycravit.com/

User avatar
KB
Site Admin
Posts: 20922
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Wed Oct 05, 2011 3:41 pm Post

The trouble is that you generally wouldn't want project-specific information saving in a Compile preset, because that would mean that you couldn't share those presets between different projects, which is the main thing presets are intended for.

For the project title, why don't you just change Compile to use <$compilegroup> wherever it currently uses <$projecttitle> and suchlike? <$compilegroup> gets replaced with the name of the current folder being compiled.

All the best,
Keith
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

ta
tammycravit
Posts: 20
Joined: Fri Oct 30, 2009 2:50 am
Platform: Mac
Location: Central Coast, CA
Contact:

Wed Oct 05, 2011 5:01 pm Post

Ah, I didn't know about <$compilegroup> - that solves most of my problem. One question: are those tags interpreted on the ebook metadata page? If I put <$compilegroup> in the Title field of the ebook metadata, will Scrivener do the right thing? (Or, can it be made to in the future?)

I'd still have to select the right cover image manually, but if the metadata could be handled, that's no big deal. (Of course, being able to set a cover image per compile group would be nice...)

Thanks again - every time I ask a question here, I learn more about how to be a more effective Scrivener user. Amazing, amazing piece of software. If Apple wanted to push its hardware to writers, they'd have a special promotion on MacBook Airs with Scrivener pre-installed, and I bet they'd sell a bunch.
Tammy Cravit, novelist and photojournalist
"Abuse of Discretion", Tessa Riley #1 (11/2011): Kindle, Smashwords
"Manifest Error", Tessa Riley #2, coming in early 2012
http://www.tammycravit.com/

User avatar
KB
Site Admin
Posts: 20922
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Wed Oct 05, 2011 5:32 pm Post

tammycravit wrote:Ah, I didn't know about <$compilegroup> - that solves most of my problem. One question: are those tags interpreted on the ebook metadata page? If I put <$compilegroup> in the Title field of the ebook metadata, will Scrivener do the right thing? (Or, can it be made to in the future?)


Ah, looking at the code, at the moment this doesn't work in that meta-data. I'll have a look at getting that working, though, as it really should do, ideally.

I'd still have to select the right cover image manually, but if the metadata could be handled, that's no big deal. (Of course, being able to set a cover image per compile group would be nice...)


The trouble is that an addition like this would add complexity for the vast number of projects. I expect your use case here is quite unusual, not necessarily in having multiple books in a single project, but compiling different books so frequently.

Thanks again - every time I ask a question here, I learn more about how to be a more effective Scrivener user. Amazing, amazing piece of software. If Apple wanted to push its hardware to writers, they'd have a special promotion on MacBook Airs with Scrivener pre-installed, and I bet they'd sell a bunch.


Many thanks! Much appreciated!

All the best,
Keith
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."