June 16, 200421 yr Filemaker fun with unixy stuff for Mac OSX - get the top N values in any field in any database. Put the following in perform applescript step in a FileMaker script: choose from list (get name of every field) set whichfield to item 1 of result set theData to field whichfield of document 1 set AppleScript's text item delimiters to ASCII character 10 Set shellStuff to " | sort | uniq -c | sort -rn | head -5" do shell script "echo " & quoted form of (theData as text) & shellstuff display dialog result SaleData.zip
Create an account or sign in to comment