• 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
Occasional missing value from Finder command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Occasional missing value from Finder command


  • Subject: Occasional missing value from Finder command
  • From: Jeffrey Mattox <email@hidden>
  • Date: Mon, 31 Mar 2003 21:39:05 -0600

I do this:

set theDir to "Macintosh HD:Users:jeff"
tell application "Finder"
set theSize to physical size of folder theDir
end tell
log (theSize) --> "missing value"

Sometimes the tell block works (returns a value in theSize), sometimes it doesn't (returns "missing value" almost immediately). In both cases, theDir is correctly pointing to my home directory. There is no error (try block). Why would the Finder occasionally refuse to return the size?

(I'm using AppleScript Studio, OS 10.2.3. I've also seen this happen in Script Debugger.)

Jeff
_______________________________________________
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.

  • Prev by Date: Re: Mail.app selection of front window
  • Next by Date: Order of items in a file list from Finder
  • Previous by thread: Re: Scripting QT player on X...
  • Next by thread: Order of items in a file list from Finder
  • Index(es):
    • Date
    • Thread