Re: Counting Multiple files??
Re: Counting Multiple files??
- Subject: Re: Counting Multiple files??
- From: Andy Wylie <email@hidden>
- Date: Wed, 21 Nov 2001 01:37:08 +1300
on 19/11/01 3:14 PM, Carlos Cavazos at email@hidden wrote:
>
Is there a way where I can have applescript count several files in a folder
>
and return an integer number so I can use that number in a loop statement?
use 'Finder'...
tell application "Finder"
set x to count of every file of (choose folder)
end tell
--or an OSAX like Mr Tanaka's
MT Count Files "Documents: Fanboy:Bucky Fuller:" of type "jpeg"
-- 0
--or Akua Sweets...
count of (the entries in "Documents: Fanboy:Bucky Fuller:" whose types are
in {"jpeg"})
-- 0
>
And how can I get appplescript to get the measurements of a pic.tif or
>
pic.eps. I mean like the parameter size of a pic? For example, a pic that is
>
in a folder is 4X5 inches, I would like applescript to determine those
>
number rather than hard coding it in the script.
>
Akua handles most image types but not EPS...
(the picture info for "Documents: Fanboy:Art:birthday.jpg")'s picture bounds
-- {0, 0, 370, 486}
--maybe GraphicsImporter OSAX...
giget gi size image "Documents: Fanboy:Art:birthday.jpg"
-- {370, 486}
_____________________________ Andy