• 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
mount volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mount volume


  • Subject: mount volume
  • From: Wayne Melrose <email@hidden>
  • Date: Wed, 19 Sep 2007 15:42:06 +0200

I've got a script that runs and mounts volumes on request... This is a server and so it would be best that errors happen silently, log, and move on..

On occasion servers that it connects to will not be available, in which case I'd like it just to log that it didnt perform the task and move one.

However I've just discovered something very odd..

here is a small handler i've made for mounting disks.

--------------------- script start
on MountVolume(SMB_afp, diskname, usr, pass, ipadd)
try
mount volume SMB_afp & "://" & usr & ":" & pass & "@" & ipadd & "/" & diskname & "/"
return "Disk Mounted"
on error errmsg
return "Disk unavailable"
end try
end MountVolume
--------------------- script end



However, if the disk is unavailable it will error, but also display a dialog error..
I tried wrapping this in "ignoring application responses" although that didnt seem to solve it.. ?


Surely there is a way to make this silent?

Thanks

Wayne Melrose

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Fwd: mount volume
      • From: Wayne Melrose <email@hidden>
  • Prev by Date: Trying to script copy and paste
  • Next by Date: Microsoft Word save as via Applescript
  • Previous by thread: Trying to script copy and paste
  • Next by thread: Fwd: mount volume
  • Index(es):
    • Date
    • Thread