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

Re: Mount volume.


  • Subject: Re: Mount volume.
  • From: Chip Howland <email@hidden>
  • Date: Mon, 23 Feb 2009 10:19:16 -0600

At 9:31 AM -0800 2/18/09, email@hidden wrote:
I recently changed from 10.3.9 to 10.4.11 on one of the MAC. I had script on
10.3.9 that would mount 5 volumes without any problem. On 10.4.11 when I run
this script it mounts sometimes 2 or 3 volumes never all 5. I tried adding
"delay" in between but this does not work.

I encountered exactly this problem about two years ago. None of the solutions recommended by Google or this list worked to my satisfaction. Eventually, I created a solution that uses aliases plus Applescript to resolve the problem.


First, I created a folder named Server volumes in the /Users/Shared folder. I then mounted the volumes manually and dragged them into the Server volumes folder to create aliases. The script below handles the rest.

tell application "Finder"
   set currentWindows to name of every window
   set startupDisk to startup disk as text
   set folderPath to startupDisk & "Users:Shared:Server volumes:"
   open every item of folder folderPath

   set newWindows to name of every window
   repeat with theWindow in newWindows
      if theWindow is not in currentWindows then close window theWindow
   end repeat
end tell

This solution works perfectly every time.
_______________________________________________
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
  • Prev by Date: Rép: Numbers '09 and AppleScript
  • Next by Date: Re: Rép: Numbers '09 and AppleScript
  • Previous by thread: Re: Rép: Numbers '09 and AppleScript
  • Next by thread: Creating Zip file via Create Archive
  • Index(es):
    • Date
    • Thread