• 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
Re: How to compare contents of a folder against a list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to compare contents of a folder against a list?


  • Subject: Re: How to compare contents of a folder against a list?
  • From: KOENIG Yvan <email@hidden>
  • Date: Sat, 5 May 2007 10:47:20 +0200


Le 5 mai 07 à 09:40:38, Philip Aker a écrit :

On 2007-05-04, at 23:28:50, KOENIG Yvan wrote:

This is what I proposed in my late message.

repeat with aprefix in my myprefixlist
repeat with aName in my masternames

set temp to (contents of aprefix & "-" & contents of aName)
considering case
if temp is not in filenames then set end of my missingfiles to temp -- if file is not present
end considering

end repeat
end repeat

You guys should test Yvan's proposal against the other with a timer. Since the above eliminates the setup and dismantlement of a repeat mechanism every time through the outer loop, I'd be willing to bet that Yvan's will be faster.




Thanks Philip ;-)

- 1 - I'm surprised because I received your responce but didn't receive my original message ;-((

- 2 -

I tested the complete script passed in my message dated 4 mai 2007 11:37:02 HAEC

With 218 files in the "master" folder and only two in the "foreign" one,
My version did its duty in 0 seconds ( I added set beg to current date after the two choose folder and a set fin to current date before the final display dialog)


I got an error message due to the fact that the list of missing files was too long (3486 missing files).

So I think
that the tip using lists defined as properties is really efficient
that a test upon the value of mycount would be useful.

Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: How to compare contents of a folder against a list?
      • From: KOENIG Yvan <email@hidden>
References: 
 >Re: How to compare contents of a folder against a list? (From: "J. Stewart" <email@hidden>)
 >Re: How to compare contents of a folder against a list? (From: KOENIG Yvan <email@hidden>)
 >Re: How to compare contents of a folder against a list? (From: Philip Aker <email@hidden>)

  • Prev by Date: How to burn a folder to DVD(s)?
  • Next by Date: Re: How to compare contents of a folder against a list?
  • Previous by thread: Re: How to compare contents of a folder against a list?
  • Next by thread: Re: How to compare contents of a folder against a list?
  • Index(es):
    • Date
    • Thread