Hybrid approach for iCloud syncing

User avatar
devinganger
Posts: 2437
Joined: Sat Nov 06, 2010 1:55 pm
Platform: Mac, Win + iOS
Location: Monroe, WA 98272
Contact:

Wed Jan 13, 2021 7:36 pm Post

I'm probably going to hate myself very quickly for even throwing this out there, but a recent discussion in the iOS Scrivener forum made me think of this potential. And if I can think of it, someone else can too.

What about a per-project option to ZIP archive the project, thus making it compatible with iCloud syncing? There would have to be caveats about project size, performance hits, etc. -- and I would think this would have to be an option that would be off by default -- but this might help fill in the gaps for people who REALLY don't like the current alternatives.
--
Devin L. Ganger
Not a L&L employee; opinions are those of my cat
Life has a way of moving you past wants and hopes

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

Wed Jan 13, 2021 7:40 pm Post

Isn't this just the File -> Backup -> Backup To command?

Being able to work with ZIPped files directly within Scrivener would pose all the problems associated with changing the project format, with the added potential for confusion due to inconsistent behavior across projects.

Katherine
Scrivener Support Team

User avatar
lunk
Posts: 4360
Joined: Wed Aug 21, 2013 4:24 pm
Platform: Mac + iOS
Location: Sweden 64° N

Wed Jan 13, 2021 8:17 pm Post

It would be an option for iOS version, if I understand Devinganger correctly.
I am a user, writing non-fiction and science, using:
* Mac Scrivener 3 on a Macbook 12”, MacBook Pro 13”, and iMac 27”, running different OS.
* iOS Scrivener 1 on an iPhone 11 Pro, iPad Air 9.7”, and iPad Pro 12.9”, all running the latest iOS

User avatar
devinganger
Posts: 2437
Joined: Sat Nov 06, 2010 1:55 pm
Platform: Mac, Win + iOS
Location: Monroe, WA 98272
Contact:

Thu Jan 14, 2021 12:18 am Post

kewms wrote:Isn't this just the File -> Backup -> Backup To command?


That's what inspired it, yes, but no -- the way I am thinking about it would be more of a toggle to Scrivener to tell it to take the extra step of unpacking the project from .ZIP when opened, work with the unpacked files (in their temporary location) while the project is opened, and then pack it all back up to a .ZIP when the project is closed.

This would add an extra bit of overhead at project open and close, but it would require only a small amount of change to the code, and it would then allow the ZIPped project files to be seamlessly synced via iCloud, Google, etc. Some people might accept this compromise if it meant they got to use the sync engine of their choice to move files between desktop and iOS Scrivener.

By simply placing a semaphore file in the root of the .scriv folder (something like "ONLY OPEN WHILE ZIPPED") Scrivener would know to not open any copy of this project it sees that it didn't unzip itself -- so if you left one copy of Scrivener open and it had written the temp copy out to a synced folder, the other copies of Scrivener wouldn't open that copy and allow you to make simultaneous edits.

Just trying to do some pie-in-the sky thinking here.
--
Devin L. Ganger
Not a L&L employee; opinions are those of my cat
Life has a way of moving you past wants and hopes

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

Thu Jan 14, 2021 5:41 am Post

Hmm. I'm not sure how much access to the iOS "file system" iOS Scrivener has. So I don't know if it would be able to do something like this. It's a novel approach to the problem, though.

Katherine
Scrivener Support Team

User avatar
devinganger
Posts: 2437
Joined: Sat Nov 06, 2010 1:55 pm
Platform: Mac, Win + iOS
Location: Monroe, WA 98272
Contact:

Fri Jan 15, 2021 2:19 am Post

kewms wrote:Hmm. I'm not sure how much access to the iOS "file system" iOS Scrivener has. So I don't know if it would be able to do something like this.


At the very least, moving a single zipped file around with Files would potentially create much less confusion -- and support tickets -- than the current method...at least in my thought experiments.

It's a kludge and I'm not going to die on this hill, but I figured it was worth tossing out there to see if it shook something useful loose.

kewms wrote:It's a novel approach to the problem, though.


Oooh. That's a wonderful pun and could mean anything. I approve!
--
Devin L. Ganger
Not a L&L employee; opinions are those of my cat
Life has a way of moving you past wants and hopes