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

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

  • Follow-Ups:
    • Re: Volume status
      • From: Graff <email@hidden>
References: 
 >Re: Volume status (From: Graff <email@hidden>)

  • Prev by Date: Gibberish lesson
  • Next by Date: Getting Data out of Filemaker Pro
  • Previous by thread: Re: Volume status
  • Next by thread: Re: Volume status
  • Index(es):
    • Date
    • Thread