Re: File size problem
Re: File size problem
- Subject: Re: File size problem
- From: Joe <email@hidden>
- Date: Wed, 21 Jul 2010 23:17:43 -0700
At 11:13 AM +1000 7/22/10, Brian Christmas wrote:
>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
Have you tried it in a System Events tell?
tell application "System Events"
set x to physical size of disk item "Disk:Users:User:Desktop:afile"
end tell
Joe
_______________________________________________
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