Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

choose folder

Hi all..

When displaying the number of files in a folder from a dialog do u need to set a variable ?


I tried the following :-

count file in the folder (choose folder)
    display dialog "Today is: " & (current date) & ".  " & "You have : " & {count file} & " files within this folder." with title "Useful Information"


but the results always comes back as 4. regardless.


Seems it doesn't work.


example?

MacBook Pro with Retina display, OS X Yosemite (10.10.5)

Posted on Jan 31, 2016 6:04 PM

Reply
Question marked as Best reply

Posted on Jan 31, 2016 6:08 PM

Here:


display dialog "Today is: " & (current date) & ". " & "You have : " & (count files of the folder (choose folder)) & " files within this folder." with title "Useful Information"


(139044)

2 replies

choose folder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.