Re: folder size
Re: folder size
- Subject: Re: folder size
- From: John Cochrane <email@hidden>
- Date: Thu, 2 Oct 2003 23:53:11 +1000
Thanks for the replies
On Thursday, October 2, 2003, at 10:33 PM, Rob Jorgensen wrote:
size of (info for aFolder)
This works well, although as you said it can take a while with large
folders.
It should enable me to move a script between machines without an error
on the first run.
On Thursday, October 2, 2003, at 10:42 PM, Emmanuel wrote:
Did you try:
tell application "Finder"
update aFolder
size of aFolder
end tell
Just tried it now and it has the same problems as my original script.
I find it interesting that after the first run it works fine even if
Applescript is quit and restarted, yet it fails after a logout.
Why is the behavior different for files than folders?
On Thursday, October 2, 2003, at 09:49 PM, John Cochrane wrote:
Could someone please explain the following behavior to me.
The first time I run the script
tell application "Finder"
size of aFolder
end tell
It results in a missing value.
Subsequent runs give a correct numeric result unless I log out and run
the script again.
The same does not apply for
tell application "Finder"
size of aFile
end tell
which gets it right from the start.
Is there a way to get the first script to return a number the first
time. Enclosing it in a try block does not seem to help.
AS 2.0 on OS 10.2.8
Puzzled.
John Cochrane
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.