Disk Utility - Format to FAT32 in Applescript - is this possible?

Discussion in 'Mac Programming' started by steevg, Jul 26, 2009.

  1. macrumors member

    Joined:
    Aug 5, 2008
    #1
    hi,

    I'd like to format an external Compact Flash card using an Applescript if possible.

    Just wondering "if" it's possible, and how I might do it? I've read several posts which identify the use of Disk Utility to do the job, but can't find the actual script to do the format.

    Any comments or help would be very much appreciated.

    Thanks
     
  2. macrumors newbie

    Joined:
    Jul 26, 2009
    Location:
    Ukraine
    #2
    I doubt this is possible directly via AppleScript, but you can use diskutil command line tool (do shell script).
     
  3. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #3
    How often do you need to format something for this to be worthwhile?
     
  4. thread starter macrumors member

    Joined:
    Aug 5, 2008
    #4
    Thanks for the responses . . . I found this - will this work?


    Eraserhead:
    Not sure what you're asking here
    Just looking for a way to erase a CF card in Mac OS!

    Thanks
     
  5. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #5
    /Applications/Utilities/Disk Utility.

    No scripting required.
     
  6. thread starter macrumors member

    Joined:
    Aug 5, 2008
    #6
    Eraserhead,

    Ahhhh sorry, I'm being a bit thick, I understand what you're saying now!

    It's the end product of an AppleScript project I'm working on, and I'd simply like the facility (if possible) for the Compact Flash card to be formatted once I've finished using it!

    But thanks anyway!
     

Share This Page