Re: Shell Script to Find Mounted Volume
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