This Applescript can clone a bootable volume in Tiger. It can be used to create a volume that can boot both an Intel Mac and a PPC Mac. To do that, the source must be a bootable Intel volume and the destination must already be a bootable PPC volume. I think for that to work, both source and destination volumes must be the same version of the OS, and that version must be 10.4.4 or 10.4.5. I think 10.4.6 spoils the ability to create a single volume for booting both Intel and PPC models using this method.
To use the script, first be sure that permissions are being recognized on the destination volume (uncheck "ignore ownership on this volume" in Finder's Info window). Run the script from script editor or script menu. You'll be prompted to select a source volume and the you'll be prompted again to select a destination volume. You can monitor status by watching root tar processes in Activity Monitor. If you want a more precise clone, erase the destination volume before executing. Some items that are normally hidden remain visible on the destination. Repairing permissions after cloning fixes most of that but not all.
--begin script--
property newline : ASCII character 10
property tmpfile : "/tmp/execme"
set the_src_choice to (choose folder with prompt "Choose the folder or volume you want to copy.")
set the_source to POSIX path of the_src_choice
set the_dest_choice to (choose folder with prompt "Choose the destination folder or volume.")
set pos_dest to POSIX path of the_dest_choice
tell application "Finder"
set disksrc to (get disk of the_src_choice)
set srcdiskname to ((characters 1 thru -2 of (disksrc as string)) as string)
try
set ignore privileges of disk srcdiskname to false
end try
set diskspec to (get disk of the_dest_choice)
set diskname to ((characters 1 thru -2 of (diskspec as string)) as string)
try
set ignore privileges of disk diskname to false
end try
end tell
set theShellScript to "umask 0" & newline & "tar -cf - -C" & space & (quoted form of the_source) & space & "." & space & "|" & space & "tar xpf - -C" & space & (quoted form of pos_dest)
do shell script "echo " & quoted form of theShellScript & " > " & tmpfile
do shell script "chmod +x " & tmpfile
do shell script tmpfile with administrator privileges
on extract_parent_from(this_filepath)
set this_filepath to this_filepath as text
set x to the offset of ":" in (the reverse of every character of this_filepath) as string
set the parent_folder_path to (characters 1 thru -(x) of this_filepath)
return the parent_folder_path as string
end extract_parent_from
--end script--
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
System-imaging mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/system-imaging/email@hidden
This email sent to email@hidden