File size problem
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