• 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: Get physical size of file on mounted disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get physical size of file on mounted disk


  • Subject: Re: Get physical size of file on mounted disk
  • From: Brian Christmas <email@hidden>
  • Date: Wed, 11 Mar 2009 06:42:38 +1100

G'day Jay

This works for me.

set mysize to {}
tell application "Finder"
repeat with myStraw in (get every file of entire contents of folder "Yearly Email Storage 2009" of disk "jobs")
set end of mysize to physical size of myStraw
end repeat
end tell
mysize

Regards

Santa


On 11/03/2009, at 6:24 AM, Jay Louvion wrote:

repeat with myStraw in myHaystack
   if (name of myStraw) is in myNeedles then
       set myPinCushion to myPinCushion & (myStraw as alias)
       set mysize to missing value
       repeat until mysize is not missing value
           tell application "Finder" to set mysize to physical size of myStraw
           if mysize is missing value then
               tell application "Finder" to update myStraw
           end if
       end repeat
   end if
end
 repeat

 _______________________________________________
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

  • Follow-Ups:
    • Re: Get physical size of file on mounted disk
      • From: Brian Christmas <email@hidden>
References: 
 >Get physical size of file on mounted disk (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: Getting the Volume Serial Number from a USB Drive?
  • Next by Date: Re: Get physical size of file on mounted disk
  • Previous by thread: Get physical size of file on mounted disk
  • Next by thread: Re: Get physical size of file on mounted disk
  • Index(es):
    • Date
    • Thread