Re: Suppress Finder error messages
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.