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

folder size


  • Subject: folder size
  • From: John Cochrane <email@hidden>
  • Date: Thu, 2 Oct 2003 21:49:40 +1000

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.

  • Follow-Ups:
    • Re: folder size
      • From: Emmanuel <email@hidden>
    • Re: folder size
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: From Mac Os X Mail to FileMaker
  • Next by Date: Re: folder size
  • Previous by thread: Re: From Mac Os X Mail to FileMaker
  • Next by thread: Re: folder size
  • Index(es):
    • Date
    • Thread