Re: Making backups with Disk Copy
Re: Making backups with Disk Copy
- Subject: Re: Making backups with Disk Copy
- From: Kai <email@hidden>
- Date: Mon, 13 Jan 2003 18:14:14 +0000
on Mon, 13 Jan 2003 09:41:17 +1100, Malcolm Fitzgerald
<email@hidden> wrote:
>
Disk Copy seems like an ideal tool for making backups but its
>
dictionary is a little hard to follow.
>
>
To convert a folder to a .dmg file:
>
>
Tell application "Disk Copy" to open (choose folder{})
>
>
This snippet displays prompts the user to choose a folder and then
>
the save as dialog box for Disk Copy appears.
>
>
I know where I want to save the image and I know the name, file type,
>
etc, that I want the new .dmg file to have. How can I bypass Disk
>
Copy's dialog box?
This works for me, Malcolm:
================================================================
set {s, t} to {choose folder, "Macintosh HD:Backup folder:"}
tell application "Finder" to set n to s's name
tell application "Disk Copy" to save s in disk image [NO BREAK]
(file (t & n & ".dmg")) using format NDIF RW without leave image mounted
================================================================
You may need to modify it to get exactly what you want - but it should get
you started.
--
Kai
_______________________________________________
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.