• 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: Mount volume without error dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount volume without error dialog


  • Subject: Re: Mount volume without error dialog
  • From: email@hidden
  • Date: Tue, 03 Feb 2004 13:56:58 -0500
  • Priority: normal

Well, I've done some searching on the internet and 'man'
pages as well as looking at some 'Shell' code from Doug
(thanks very much for sharing this Doug :-) and have come
up with the following code I thought I might post in case it
may be useful to anyone else. If my password is disabled
this code will work as I need it to without displaying that
'Connection Failed' dialog:

-------
try
do shell script "mkdir /Volumes/dirName"
end try
try
do shell script "mount_afp
afp://user:password@serverName/dirName/ /Volumes/dirName"
on error
-- error handling...
end try
-------

If anyone sees anything wrong with this code please let me
know. Unix and Shell Scripting are very new to me.

Many thanks to Gary, Gnarlodious and Doug for their replies
and thoughts. I appreciate everyones help.

Jay
_______________________________________________
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.

  • Follow-Ups:
    • Re: Mount volume without error dialog
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Summary: Applescript can't tell time?
  • Next by Date: Re: Multiline commands in do shell script
  • Previous by thread: Re: Mount volume without error dialog
  • Next by thread: Re: Mount volume without error dialog
  • Index(es):
    • Date
    • Thread