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

physical size error


  • Subject: physical size error
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 30 Sep 2010 13:12:22 -0500

I wrote a script which has a strange behavior: It errors on the first use after a restart.
I traced the error to this one line ...

set fileSize to (physical size of fileAlias) --  = 'missing value' on first run after restart


If I try to run the script a second time, it works perfectly.

I eliminated the problem by replacing the line with this code ...

repeat
try
0 + (physical size of fileAlias) --  = 'missing value' on first run after restart
set fileSize to the result
exit repeat
on error
delay 1
end try
end repeat

Does anyone have an explanation?

 _______________________________________________
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

  • Follow-Ups:
    • Re: physical size error
      • From: "Stockly, Ed" <email@hidden>
  • Prev by Date: FileMaker PART #2 - file asking for passwords
  • Next by Date: Re: physical size error
  • Previous by thread: FileMaker PART #2 - file asking for passwords
  • Next by thread: Re: physical size error
  • Index(es):
    • Date
    • Thread