Re: Disk Copy Script
Re: Disk Copy Script
- Subject: Re: Disk Copy Script
- From: Rob Jorgensen <email@hidden>
- Date: Sun, 27 Jul 2003 09:56:58 -0400
At 7:42 AM -0400 7/25/03, John Azevedo wrote:
Can someone please show an example of a script, that creates a disk
image with Disk Copy 10.2.3.
I know that this is not what you asked for but if anyone offered a
Disk Copy script, I missed it, and I have never had much success when
attempting to script Disk Copy. The example script uses the shell
utility "hdiutil". For more info:
tell application "Terminal" to do script "man hdiutil"
This should create a 5 MB HFS+ disk image named "hfs+_image" on the desktop.
--
set name_ to "hfs+_image"
set size_ to "5m"
set ptd to path to desktop as text
set path_ to quoted form of POSIX path of (ptd & name_)
set make_ to "hdiutil create " & path_ & " -size " & size_ & " -fs
HFS+ -volname " & name_
do shell script make_
--
-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.