Is-it a bug in the finder ?
Is-it a bug in the finder ?
- Subject: Is-it a bug in the finder ?
- From: "Syllas R." <email@hidden>
- Date: Mon, 25 Nov 2002 08:49:44 -0800
Hi All,
The following script should compare the contents of a source folder to the
one
of a target folder and stores the difference in a variable
----- START ------
tell application "Finder"
set SourceFolder to folder "LocalDisk:Desktop Folder:00002 Destination:"
set TargetFolder to folder "VolumeA:00002 Destination:"
set TargetList to name of (every folder) of TargetFolder
set DifSource to (((every folder) of SourceFolder) whose name is not in
TargetList)
display dialog number of items of DifSource
end tell
----- END ---------
In the following case this script does not work at all. ( The Script should
display 1)
When the Source folder, "LocalDisk:Desktop Folder:00002 Destination:",
contains these two folders:
"00002 Test1" and "Test1"
And the Target folder, "VolumeA:00002 Destination:",contains this folder :
"Test1"
I can't figure out what's happen.
Is-it a bug in the finder ?
I am using Mac OS 9.2.2 and AppleScript 1.7
Any help will be appreciated !
Thanks in advance
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.