Automatic compile on save

Ji
JimCarnicelli
Posts: 2
Joined: Thu Sep 25, 2014 4:29 am
Platform: Mac

Thu Sep 25, 2014 5:20 am Post

I frequently wish to hand out copies of the current state of my novel to friends who, naturally, don't have Scrivener. The amazing ability to compile to many formats and with varying options is made even better by the ability to save a custom settings set with its own name.

I would love to see the option to choose one or more of those saved compile settings sets to automatically compile to whenever I save or on closing the program (auto-save). This probably would mean specifying a file name and destination folder.

For me, a wonderful application would be to automatically save to my local Google Drive cache folder. I can share an easy-to-read or -download RTF there with anyone with the URL. The URL and sharing settings don't change as new versions of the file are uploaded. In this use case, my friends could always see a preview of the current text.

Another use case would be to allow me to review my own work from my Android phone while away from my Macs. Reviewing via Kindle reader or such would be a nice way to do so.

Thanks for an awesome product!

tr
trajectory
Posts: 3
Joined: Sun Oct 05, 2014 2:23 pm
Platform: Mac + Windows

Sun Oct 05, 2014 2:36 pm Post

I came here to suggest a similar feature. I end up compiling a lot when I'm preparing short stories for submission.

  • The simplest option: one keystroke compile. Uses the settings you used last time, including the file path. This would save me a lot of clicking.

  • More advanced: auto-compile on save, as Jim suggests. This would mean I always know that the draft have on Google Drive is the latest, and I can browse to it from my phone etc to read through it.

(While I'm here: thanks, Scrivener devs, for a great piece of software.)

User avatar
kewms
Posts: 5930
Joined: Fri Feb 02, 2007 5:22 pm
Platform: Mac

Sun Oct 05, 2014 4:17 pm Post

While we don't have automatic compile, we do come close to single-keystroke compile. The Compile command automatically remembers your previous settings, so just clicking "Compile" in the File -> Compile window will do "the same thing as last time." Or you could create a custom Compile preset, which isn't a bad idea anyway if you often use the same settings.

You can also use the File -> Print Current Document command to print whatever is in the Editor window --including a large Scrivenings session -- to a PDF file, which can then be saved to Google Drive or wherever. PDFs aren't editable, and Print Current Document doesn't offer as many options as Compile, but this is probably the fastest and easiest way to create an electronic copy of your manuscript. This is what I usually do.

One technical issue with auto-compile on save would be performance. Short stories compile almost instantly, but a book-length manuscript with lots of images can take quite a lot of time. It would be very annoying to get dumped into the Compile routine just because I hit Cmd-S at the bottom of a page.

Katherine
Scrivener Support Team

User avatar
Sanguinius
Posts: 614
Joined: Sun Dec 04, 2011 4:16 pm
Platform: Windows

Sun Oct 05, 2014 6:59 pm Post

The Compile command automatically remembers your previous settings, so just clicking "Compile" in the File -> Compile window will do "the same thing as last time."

I'm assuming this is Mac only? I always get sent to the dialog box, regardless of if I use the keyboard shortcut, the File menu, or the menu bar button.

User avatar
MimeticMouton
Posts: 8780
Joined: Wed May 05, 2010 5:39 am
Platform: Mac + Windows
Location: city of rain
Contact:

Sun Oct 05, 2014 8:20 pm Post

Mac and Windows are the same in this regard. You always get sent to the compile dialog and will need to click "Compile" and choose your save location to complete the process. Katherine's point was that all the settings are preserved, so you don't need to fuss with those every time.
Jennifer Hughes
(MM for short)

to
tobyspark
Posts: 2
Joined: Wed Jan 08, 2014 3:17 pm
Platform: Mac

Tue Oct 28, 2014 7:05 pm Post

1. Exit distraction-free mode*
2. Compile menu-item
3. Hit 'Compile'
4. Click in filename text field.
5. Type file extension**
6. Click export
7. Click replace

That is a lot of clicking, and it's a lot of clicking I have to do often. I too dream of 'compile as per last action' either on save or as a separate command.

* I often work with an external monitor plugged in, notes on laptop screen and scrivener in distraction-free mode on the main monitor. This step is particularly annoying as i. I can access the Scrivener menu but the menu item is disabled and ii. Scrivener incorrectly fades *both* displays to black, which is an extra delay and distracting.

** Scrivener doesn't remember the filename extension from last time, nor does it apply the filename extension if you select a file from the dialog. Filename extension can't be set in the compile settings, as far as I can see.

User avatar
xiamenese
Posts: 4270
Joined: Mon Jan 29, 2007 1:32 am
Platform: Mac
Location: London or Exeter, UK.

Wed Oct 29, 2014 12:47 am Post

[quote="tobyspark”]……
4. Click in filename text field.
5. Type file extension**
6. Click export
7. Click replace

** Scrivener doesn't remember the filename extension from last time, nor does it apply the filename extension if you select a file from the dialog. Filename extension can't be set in the compile settings, as far as I can see.[/quote]

Go to Finder, choose Preferences from the “Finder” menu, choose Advanced pane, click on "Show all Filename Extensions”*. The (invisible) extension that is there on all files will become visible and you don’t have to do 4 and 5. And if you’re not changing the name, or the location as Jen says, it’s just:

Command-e

Return

and its done.
No great burden.

Mr X

* That’s the first thing I do when setting up a new Mac … set the Finder up the way I want from the Preferences and the “View —> Show View Options”.
The Scrivenato sometimes known as Mr X.
iMac 27" (late 2015) 10.15.4, 24GB RAM, 512GB SSID
MBP17" (late 2011) 10.13.6, 16GB RAM, 2TB SSID
2017 iPad, iPadOS 13.3, 128GB, Apple Pencil
Scrivener, Scapple, Nisus Writer Pro, Bookends …

Gr
Gregladen
Posts: 22
Joined: Mon Feb 18, 2013 4:31 am
Platform: Linux + Windows

Thu Nov 13, 2014 2:02 pm Post

An autocompile idea has already been suggested and there is some talk about this.

For me, the idea is to have a specific manuscript always exist as an ebook version so I can go through it on that context if I feel like it (or ignore it for a time). But simply autocompiling is not enough.

Here is the ideal workflow for me.

Work on a manuscript with Scrivener.
Later, open a tablet and find an autocompiled version in an ebook reader.
Go through the manuscript and highlight spots and add notes, maybe even some minor editing???
Later, back at Scrivener, the highlights and minor editing is reflected in the original.

Personally, I have no need for a program as complicated and feature rich as Scrivener on a tablet. But I would love to be able to use the above workflow. I do it now, but less automatically .

Online
User avatar
AmberV
Posts: 24134
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Fri Nov 14, 2014 12:01 am Post

Moderator note: merged with existing thread for auto-compile.

I’m not sure about Linux, but on Windows there is handy utility called AutoHotKey that can make stuff like this a lot easier. I in fact use a similar utility for the Mac, Keyboard Maestro, that just automates the sequence of keystrokes required to compile, save and overwrite the existing file.

While I just use it to speed up the file overwrite phase, it would trivial to couple all of that with the commands to close the project, turning it into a single action to compile and close.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles