• 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: Suppress Finder error messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppress Finder error messages


  • Subject: Re: Suppress Finder error messages
  • From: Axel Luttgens <email@hidden>
  • Date: Tue, 14 Jan 2003 09:23:36 +0100

Timothy K. Wilkinson wrote:

> I've got a script that mounts an SMB volume remotely in 10.1.5. It allows
> user input of id and password. The problem I'm having is that when
> there is
> an error mounting the drive the Finder displays an error message that
> includes the user id and password!
>
> The code I'm using for SMB mounting in 10.1.5 is:
>
> try
> tell application "Finder"
> open location "smb://user_id:password@server_name/share"
> end tell
> on error
> ignoring application responses
> display dialog "The drive is unavailable"
> end ignoring
> end try
>
>
> Anyone know how to suppress Finder error dialogs in 10.1.5?


"open location" isn't a Finder command, but a Standard Additions one; no
need thus to enclose it in a 'tell app "Finder"' statement.
Now, the dictionary entry for that command is:

open location plain text -- the URL to open
[error reporting boolean] -- should error conditions be
reported in a dialog?

HTH,
Axel
_______________________________________________
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.

References: 
 >Suppress Finder error messages (From: "Timothy K. Wilkinson" <email@hidden>)

  • Prev by Date: Re: Scripting QuarkXPress from OS X
  • Next by Date: Re: unicode escape sequences in AppleScript strings
  • Previous by thread: Suppress Finder error messages
  • Next by thread: osascript resets $HOME ?!
  • Index(es):
    • Date
    • Thread