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

Re: Occasional missing value from Finder command


  • Subject: Re: Occasional missing value from Finder command
  • From: Jeffrey Mattox <email@hidden>
  • Date: Tue, 1 Apr 2003 20:06:02 -0600

But the default timeout is 120 seconds. I get the error within one or two seconds. I've tried an explicit "with timeout of 120 seconds", with no effect.

At 5:02 PM -0800 4/1/03, Graham Carter wrote:
I would think this is because it takes a certain amount of time to calculate the size. If you try this on small directories you should get the right answer every time. If you tell your script to wait for a second or two (or more if you are calculating a very large directory) it should work every time.

-Graham

On Monday, March 31, 2003, at 07:39 PM, Jeffrey Mattox wrote:

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.

  • Follow-Ups:
    • Re: Occasional missing value from Finder command
      • From: Mr Tea <email@hidden>
    • Re: Occasional missing value from Finder command
      • From: Graham Carter <email@hidden>
    • Re: Occasional missing value from Finder command
      • From: Helmut Fuchs <email@hidden>
References: 
 >Re: Occasional missing value from Finder command (From: Graham Carter <email@hidden>)

  • Prev by Date: do shell script security issue
  • Next by Date: Re: New to OS 10 help Please
  • Previous by thread: Re: Occasional missing value from Finder command
  • Next by thread: Re: Occasional missing value from Finder command
  • Index(es):
    • Date
    • Thread