• 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: Disk Copy Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Disk Copy Script (From: John Azevedo <email@hidden>)

  • Prev by Date: Re: getting the rank of an element of a list
  • Next by Date: do JavaScript with Safari
  • Previous by thread: Disk Copy Script
  • Next by thread: Does there exist...
  • Index(es):
    • Date
    • Thread