Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6185 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Here is a simple applescript to get the count of file types on your hard drive. In my case I get a total of about 4000 files in 1 second.

set makeFind to "mdfind "kMDItemKind == 'FileMaker Document'""

do shell script makefind

set f0 to count of paragraphs of result

set makeFind to "mdfind "kMDItemKind == 'Microsoft Word document'""

do shell script makefind

set f1 to count of paragraphs of result

set makeFind to "mdfind "kMDItemKind == 'Microsoft Excel workbook'""

do shell script makefind

set f2 to count of paragraphs of result

copy ("FMP: " & f0 & " Word: " & f1 & " Excel: " & f2) as string to cell "AS_Result" of current record

This topic is 6185 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.