• 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: problem with use of timeout property of Finder in applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with use of timeout property of Finder in applescript


  • Subject: Re: problem with use of timeout property of Finder in applescript
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 01 Aug 2006 08:24:12 -0700
  • Thread-topic: problem with use of timeout property of Finder in applescript

On Tue, 1 Aug 2006 18:09:14 +0530, "Amit Jain" <email@hidden>
said:
>Hi all,
>I have used the following code and used the time out property of
>finder in applescript:
>with timeout of 10 seconds
> try
>  tell application "Finder"
>   mount volume "smb://username:password@ipAddress/sharedFolderName"
>  end tell
> on error
>  display dialog "could not connect to server"
> end try
>
>end timeout
>
>it works successfully and if in 10 secs does not find any server with
>above ipAddress it displays the above dialogue.
>But the Finder still searches for the ipAddress and after some a long
>duration(in minutes)  it gives an error on console"mount_smbfs:
>negotiate phase failed: syserr = Operation timed out".
>Then I am not able to understand that what is the use of above
>applescript if still the Finder continues its process in background?

That *is* the use of above applescript. The "with timeout" means that your
script stops waiting after 10 seconds; it does not, and should not, also
tell the Finder to stop working. See pp. 295-6 of my book, and please take
questions of this sort elsewhere (e.g. the AppleScript-Users list). m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: problem with use of timeout property of Finder in applescript
      • From: "Amit Jain" <email@hidden>
  • Prev by Date: Re: NSTabView and edit fields
  • Next by Date: Re: Frameworks + sharedFrameworksPath
  • Previous by thread: problem with use of timeout property of Finder in applescript
  • Next by thread: Re: problem with use of timeout property of Finder in applescript
  • Index(es):
    • Date
    • Thread