• 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: Philip Aker <email@hidden>
  • Date: Mon, 13 Jul 2009 20:20:38 -0700

On 2009-07-13, at 15:29:43, Emmanuel LEVY wrote:

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"

I used to have problems with Xcode leaving duplicate folders in / Volumes when I would inadvertently yank out a USB stick with a project on it forgetting that Xcode still had the project open.
To make sure you have a "clean" /Volumes folder, unmount all attached volumes, 'open /Volumes' and trash the unwanted duplicate folders.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

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

  • Prev by Date: Re: Folder action for modified file
  • Next by Date: Re: still having trouble with SOAP
  • Previous by thread: Re: Shell Script to Find Mounted Volume
  • Next by thread: 2 timers at once
  • Index(es):
    • Date
    • Thread