Bug in the Finder?
Bug in the Finder?
- Subject: Bug in the Finder?
- From: Syllas Rodner <email@hidden>
- Date: Sat, 23 Nov 2002 08:26:45 -0800 (PST)
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 DifSource as text
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
Yahoo! Mail Plus Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.