Re: (no subject) [Finder count]
Re: (no subject) [Finder count]
- Subject: Re: (no subject) [Finder count]
- From: Cornwall <email@hidden>
- Date: Tue, 3 Sep 2002 18:36:33 -0700
At 5:31 PM -0500 9/3/02, Patrick R. Reardon, M.D. wrote:
>
I am in the process of transferring some of my scripts from
>
OS 9 to OS X. I can't get past asking the finder to count the number
>
of files in a folder (using the folder name as a string) with the
>
count command.
The syntax can throw you. Perhaps some examples will help.
set ileus to choose folder
tell application "Finder"
count each file of folder ileus
end tell
-->odd. but I need to put "folder" before the alias reference(?)
set peep to (choose folder) as string
tell application "Finder"
count each file of folder peep
end tell
tell application "Finder"
set faacp to every folder of desktop whose name starts with "Pu"
count of faacp
end tell
HTH
Corny
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: "Patrick R. Reardon, M.D." <email@hidden>) |