Frontier website on www.scripting.com
Reconciling Folders from the Finder
Here's a very useful command for PowerBook users or for people with more than one Macintosh
Suppose you're about to go on a trip and want to work on the "Cascade Project" while you're traveling. If you're like most PowerBook users, you have a copy of the folder on both machines. But the copy on your PowerBook is out of date.How do you reconcile the differences between the newer version of the folder on your desktop machine, and the older version on the PowerBook? That's what the Reconcile Folderscommand does.
Before choosing the command, do a little setting up first:
- Connect your PowerBook to the desktop machine using the AppleShare software that comes with System 7. Mount the PowerBook's hard disk using the Chooser.
- Create a new folder on your desktop hard disk called "Reconcile Setup Folder."
- Select a folder on your PowerBook hard disk and create an alias to it. This folder should be one of the two folders you want to reconcile. Copy the alias into the Reconcile Setup Folder.
- Select a folder on your desktop hard disk, create an alias to it, and copy the alias to the Reconcile Setup Folder. This folder should be the one that you want to reconcile with the one in step 3. Now you're ready to go!
Select both aliases in the Reconcile Setup Folder, then select the Reconcile Folders... command from the Scripts menu.
A dialog box appears. The command can only guess which of the two folders is being copied from (the "source folder") and which is being copied to (the "destination folder"). That's why the Switch button is there. If the order is reversed, just click on the Switch button and the source folder becomes the destination folder and vice versa.
If you're satisfied that this is what you want to do, click on the Reconcile button.
This is what the command does for you:
- It scans the source folder copying files that don't exist in the destination folder, or have a more recent modification date than the same file in the destination folder.
- It scans the destination folder looking for files that exist there that don't exist in the source folder. It doesn't delete these files, instead it moves them to a folder it creates called Extra Files. It pays to look in this folder before you delete it. Maybe you did some work on the PowerBook since your last trip? Better safe than sorry!
When you return from your trip, select the same two aliases, but this time make sure that the source and destination are reversed.
For script writers we've included a Frontier verb that reconciles two folders: file.reconcileFolder. You can use this verb in custom scripts.
© Copyright 1996-97 UserLand Software. This page was last built on Wed, Jan 22, 1997 at 2:31:15 PM with Frontier. Thanks for checking it out! Dave