• 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: Shell Script to Find Mounted Volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell Script to Find Mounted Volume


  • Subject: Re: Shell Script to Find Mounted Volume
  • From: Emmanuel LEVY <email@hidden>
  • Date: Tue, 14 Jul 2009 00:29:43 +0200

On Jul 13, 2009, at 8:03 PM, Jim Skibbie wrote:

You might also try

set MountedVols to every paragraph of (do shell script "ls /Volumes")

I wonder when that will work correctly...

Here, do shell script "ls /Volumes" returns:

Library
Library-1
Library-2
Library-3
Library-4
Library-5
Library-6
Macintosh HD

In fact I have only 2 volumes mounted - and, consistently, do shell script "ls /Volumes/Libary-1" fails with "No such file or directory"

So, ls /Volumes is fine, but double-test.

Emmanuel


_______________________________________________ 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: Shell Script to Find Mounted Volume
      • From: Philip Aker <email@hidden>
References: 
 >Re: Shell Script to Find Mounted Volume (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Folder action for modified file
  • Next by Date: Re: Mac10.6 bug? NSAppleScript can't work
  • Previous by thread: Re: Shell Script to Find Mounted Volume
  • Next by thread: Re: Shell Script to Find Mounted Volume
  • Index(es):
    • Date
    • Thread