Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 26, 2009, 06:04 AM   #1
steevg
macrumors member
 
Join Date: Aug 2008
Disk Utility - Format to FAT32 in Applescript - is this possible?

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
steevg is offline   0 Reply With Quote
Old Jul 26, 2009, 04:02 PM   #2
shesmu
macrumors newbie
 
Join Date: Jul 2009
Location: Ukraine
I doubt this is possible directly via AppleScript, but you can use diskutil command line tool (do shell script).

Last edited by shesmu; Jul 26, 2009 at 04:13 PM.
shesmu is offline   0 Reply With Quote
Old Jul 26, 2009, 04:14 PM   #3
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
How often do you need to format something for this to be worthwhile?
Eraserhead is offline   0 Reply With Quote
Old Jul 27, 2009, 05:34 AM   #4
steevg
Thread Starter
macrumors member
 
Join Date: Aug 2008
Thanks for the responses . . . I found this - will this work?

Quote:
do shell script "diskutil eraseDisk \"MS-DOS FAT32"\ NewDiskName /Volumes/CurrentDisk"

Eraserhead:
Not sure what you're asking here
Quote:
"How often do you need to format something for this to be worthwhile? "
Just looking for a way to erase a CF card in Mac OS!

Thanks
steevg is offline   0 Reply With Quote
Old Jul 27, 2009, 01:53 PM   #5
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
/Applications/Utilities/Disk Utility.

No scripting required.
Eraserhead is offline   0 Reply With Quote
Old Jul 27, 2009, 02:29 PM   #6
steevg
Thread Starter
macrumors member
 
Join Date: Aug 2008
Eraserhead,

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

Quote:
Originally Posted by Eraserhead View Post
/Applications/Utilities/Disk Utility.

No scripting required.
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!
steevg is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Stuck on disk utility trying to format iMac ventuss iMac 3 Oct 23, 2013 02:46 PM
Disk Utility cannot format new 4TB hard drive sstolee iMac 4 Sep 8, 2013 03:58 AM
Lost ability to format NTFS using Disk Utility on Snowleopard 10.6.8 Sim Pill OS X 4 Aug 6, 2013 04:52 AM
Resolved: Cannot format SSD with Disk Utility esmitex MacBook Pro 4 Jun 4, 2013 08:24 AM
Disk Utility can't format internal SSD joelhietala Mac Basics and Help 2 Oct 31, 2012 01:04 AM

Forum Jump

All times are GMT -5. The time now is 10:53 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC