Re: File size problem
Re: File size problem
- Subject: Re: File size problem
- From: Brian Christmas <email@hidden>
- Date: Thu, 22 Jul 2010 11:13:23 +1000
On 22/07/2010, at 3:27 AM, Ronald Hofmann wrote: Hi Santa, in my opinion you need a tell Finder block.
It works this way.
set RTFDPath to "MBP:Users:rmh:Desktop:Newsletterv14n7.pdf"
tell application "Finder" try set theFileSize to physical size of file RTFDPath display dialog theFileSize as text --< returns missing value on error set theFileSize to 0 end try end tell
greetings, Ronald hope you drop me one on Xmas :)))
Thanks Ronald, but the statement was already embedded as part of a tell Finder block
The answer is to read twice sequentially, as I found after testing for some time.
set ptd to path to desktop set ptf to ptd & "2010-06-28 142254Z.rtf" as text tell application "Finder" set temp to (file ptf as alias) set temp2 to properties of temp set temp2 to properties of temp set thesize to size of temp2 end tell temp2
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