Re: Volume status
Re: Volume status
- Subject: Re: Volume status
- From: Jakub Formanek <email@hidden>
- Date: Sat, 02 Oct 2004 21:48:21 +0200
Thanks everyone who have sent me tips and sample code!
For your information; my unix guru friend sent me a Shell example.
Below is my AppleScript source code:
------
copy "/Volumes/theVolume" to theVolume
if (my writableVolume(theVolume)) then log "This volume is writable."
on writableVolume(theVolume)
try
do shell script "diskutil info " & "\"" & theVolume & "\"" & " |
grep -q \"Read Only: No\""
return true
on error
return false
end try
end writableVolume
------
Thanks for your time!
Sincerely,
Jakub
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden