Newbie asks a question
Newbie asks a question
- Subject: Newbie asks a question
- From: Mark Ritter <email@hidden>
- Date: Sat, 13 Jan 2001 14:08:59 -0600
I'm trying to syncronize folders over a network of
1. an old WorkGroup Server 95 running OS 7.5.5
2. an old PPC 6100 running OS 8.6
3. a 1st generation G3 Powerbook running OS 8.6 and
4. a Beige G3 running OS 9.0.4.
I am using the Syncronize Folders script that comes with More Automated Tasks and when it asks for the folders, I select them. Then I get an error of
type 5038 has occurred. I then have the choice to edit or quit. When I edit, the "folder" in line 9 (bold faced and underlined herein) is
highlighted. I assume this is where the error is occurring. Can anyone help?
on SyncEm(folder1, folder2)
tell application "Finder"
set Folder1Contents to list folder folder1
set Folder2Contents to list folder folder2
repeat with x in Folder1Contents
if x is not in Folder2Contents then
duplicate alias ((folder1 as text) & x) to folder folder2
else
if kind of alias ((folder1 as text) & x) is "folder" then
SyncFolders(((folder1 as text) & x) as alias, ((folder2 as text) & x) as alias) of me
else
set date1 to modification date of alias ((folder1 as text) & x)
set date2 to modification date of alias ((folder2 as text) & x)
if date1 > date2 then
duplicate alias ((folder1 as text) & x) to folder folder2 with replacing
end if
end if
end if
end repeat
end tell
end SyncEm