Re: Get physical size of file on mounted disk
Re: Get physical size of file on mounted disk
- Subject: Re: Get physical size of file on mounted disk
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 11 Mar 2009 11:12:20 +0100
You may fasten it using properties for every list.
--[SCRIPT]
property myHaystack : {}
property myPinCushion : {}
property mysize : {}
property mysizestring : {}
property mynamestring : {}
property myNeedles : {"2009-03-10 002133Z.emlx.zip", "2009-03-10
002731Z.emlx.zip", "2009-03-10 014903Z.emlx.zip", "2009-03-10
015107Z.emlx.zip", "2009-03-10 015140Z.emlx.zip", "2009-03-10
015211Z.emlx.zip"}
my nettoie()
tell application "Finder"
set my myHaystack to every file of entire contents of folder "Yearly
Email Storage 2009" of disk "jobs"
set my mysizestring to get physical size of every file of entire
contents of folder "Yearly Email Storage 2009" of disk "jobs"
set my mynamestring to get name of every file of entire contents of
folder "Yearly Email Storage 2009" of disk "jobs"
end tell
repeat with x from 1 to count of my myHaystack
if item x of my mynamestring is in my myNeedles then
set end of my myPinCushion to item x of my myHaystack as alias -- a
bit faster
set end of my mysize to item x of my mysizestring
end if
end repeat
my myPinCushion & return & my mysize
my nettoie()
on nettoie()
set myHaystack to {}
set myPinCushion to {}
set mysize to {}
set mysizestring to {}
set mynamestring to {}
end nettoie
--[/SCRIPT]
Yvan KOENIG (from FRANCE mercredi 11 mars 2009 11:10:29)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden