Not clear. If the pendrive was the slave, replicated from the office "master", edits should not be done directly in the pendrive slave, should they?
Or is it a case where the two (office and pendrive) each have dual status, as master and slave to each other, so that changes in one get mirrored to the other?
I think what would interest me is the latter, but the two scripts can be made, I suppose.
Look at me ... talking about scripting and the only thing remotely like that, I have ever attempted was automatize wine to open a drug database on a Windows only CD via a Desktop icon ;-) :-p
Rogerio