• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Counting Multiple files??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Counting Multiple files?? (From: Carlos Cavazos <email@hidden>)

  • Prev by Date: Re: Appleworks 5: Make new object at ???
  • Next by Date: Re: Modify Data Fork
  • Previous by thread: Counting Multiple files??
  • Next by thread: Re: Counting Multiple files??
  • Index(es):
    • Date
    • Thread