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

Mounting volumes


  • Subject: Mounting volumes
  • From: Cliff Nowack <email@hidden>
  • Date: Tue, 13 Nov 2007 12:21:41 -0800

I have a script that needs to mount server volumes. Since this will be running in different locations, I needed to use a list of the needed volumes in a file that the script can read when it starts. The problem is that the volumes do not all mount in the Finder, but do all mount on the UNIX side. One or two of the volumes will appear on the desktop and be accessible, but all the others don't. They are all in the /Volumes directory and they are accessible through Terminal. I've tried putting in delays and using different mount commands, but I can't get it to work.

set serverList to {{|Server Name|:"MyServer", |Password|:"MyPassword", |Volumes|:{"Volume 1", "Volume 2", "Volume 3"}, |User Name|:"MyUserName"}}
repeat with m from 1 to the count of serverList
set thisServer to item m of serverList
set thisServerName to the |Server Name| of thisServer
set thisUserName to the |User Name| of thisServer
set thisPassword to the |Password| of thisServer
set theVolumes to the |Volumes| of thisServer
repeat with v from 1 to the count of theVolumes
set thisVolume to item v of theVolumes
try
--mount volume thisVolume on server thisServerName as user name thisUserName with password thisPassword
mount volume "afp://" & thisServerName & "/" & thisVolume as user name thisUserName with password thisPassword
delay 1
end try
end repeat
end repeat

Any help would be greatly appreciated.

Cliff 
 _______________________________________________
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:
    • Re: Mounting volumes
      • From: Neil Laubenthal <email@hidden>
  • Prev by Date: Re: InDesign relink and update picture
  • Next by Date: Re: InDesign relink and update picture
  • Previous by thread: Selection in PhotoShop CS3
  • Next by thread: Re: Mounting volumes
  • Index(es):
    • Date
    • Thread