• 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
File size problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File size problem


  • Subject: File size problem
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 22 Jul 2010 02:02:07 +1000

G'day listers

Many moons back we discussed a problem with getting file sizes in Applescript, where reading the physical size or size returned a 'missing value'.

I can't for the life of me remember what the solution was. Can anyone help out here please?

try
set temp to (file (RTFDPath as alias))
--set temp2 to properties of (temp)
set theFileSize to physical size of temp
display dialog theFileSize as text--< returns missing value
on error
set theFileSize to 0
end try


Regards


Santa


And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably

Sri Aurobindo





 _______________________________________________
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: File size problem
      • From: Steve Thompson <email@hidden>
  • Prev by Date: Re: Sort Array by Column X
  • Next by Date: AppleScript to move messages between mailboxes in Apple Mail
  • Previous by thread: Re: Converting Pictures via AppleScript?
  • Next by thread: Re: File size problem
  • Index(es):
    • Date
    • Thread