• 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
Comparing lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Comparing lists


  • Subject: Comparing lists
  • From: Peter Baxter <email@hidden>
  • Date: Sun, 08 Dec 2013 09:14:58 +1100

I am trying to check whether files printed to PDF from Filemaker Pro Databases have been printed.

I wrote a script that creates an applescript list of all the records in a field.
It then is supposed to check the contents of a folder for files that are not in both lists:
set FilemakerList to the result -- the name of each file printed from the the records in the database
--  ie. BAX0001.pdf
end repeat

set PrintedReports to {}
-- this part of the script selects the names of all files from the folder

set Uniquelist to {}

repeat with a from 1 to (count FilemakerList)
set thisUpdate to item a of FilemakerList
if (text items of (thisUpdate) is not in text items of (PrintedReports)) then set end of Uniquelist to thisUpdate
end repeat

Uniquelist

As one list is the name of files, and the other list is text from Filemaker, they are not recognised as identical.  The whole list is printed.  How do I get the script to recognise them as the same? (coerce them into the same format?)

Peter Baxter


 _______________________________________________
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: Comparing lists
      • From: Emmanuel LEVY <email@hidden>
    • Re: Comparing lists
      • From: Bruce Robertson <email@hidden>
  • Prev by Date: Re: Mail slow creating html message
  • Next by Date: Re: Comparing lists
  • Previous by thread: Re: System Events -600 error
  • Next by thread: Re: Comparing lists
  • Index(es):
    • Date
    • Thread