• 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: Enable to trap -39 error...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enable to trap -39 error...


  • Subject: Re: Enable to trap -39 error...
  • From: Kai Edwards <email@hidden>
  • Date: Thu, 21 Nov 2002 04:57:49 +0000

on Tue, 19 Nov 2002 18:25:53 +0100, Monsoft <email@hidden> wrote:

> I have some pbms to trap an error -39 (MacOS 9.2.2)
> I have to copy regularly a file which is regularly updated by a Windows
> application on a Windows disk.
> This windows disk is mounted on my Mac (with DAVE) and all is working
> fine except a randomly -39 error which is not trapped by this code :
>
> tell application "Finder"
> try
> if busy status of (info for file Origine_Itineraire) is false then
> duplicate file Origine_Itineraire to folder myPath with replacing
> else
> return false
> end if
> on error msg number errNum
> return false
> end try
> end tell
>
> My Apple Script application stopped with a Finder dialog each time this
> error occured...
>
> When I get info for this file, all seems to be OK.
> When this error occured, my error trap doesn't trap anything!
>
> Is there somebody with knowledge about AppleScript and Windows files?

Laurent, I'm slightly suspicious about the error (or lack of it) in the
above section of your script.

Error -39 [eofErr] is an end of file error. Does another part of your script
attempt to open/read the file in question and, if so, could this not be
causing the error whenever it arises?

Kai

--
email@hidden
email@hidden
_______________________________________________
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: Digesting the digests ... (was: OK - so who ate my digests?)
  • Next by Date: Re: Tex-Edit: What OSAX is this using?
  • Previous by thread: Re: Enable to trap -39 error...
  • Next by thread: RegEx & Concordances
  • Index(es):
    • Date
    • Thread