• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is-it a bug in the finder ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Is-it a bug in the finder ?
      • From: John Delacour <email@hidden>
    • Re: Is-it a bug in the finder ?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Getting droplets to accept text/image clippings
  • Next by Date: Re: lock the screen from the keyboard, win a prize
  • Previous by thread: Re: Getting droplets to accept text/image clippings
  • Next by thread: Re: Is-it a bug in the finder ?
  • Index(es):
    • Date
    • Thread