Re: DropStuff workaround (was Re: OS X and RegEx Commands)
Re: DropStuff workaround (was Re: OS X and RegEx Commands)
- Subject: Re: DropStuff workaround (was Re: OS X and RegEx Commands)
- From: John Cochrane <email@hidden>
- Date: Sun, 28 Dec 2003 19:29:26 +1100
Thanks for the help Ken.
I've got some fun ahead trying these out.
John
On 28/12/2003, at 1:56 PM, Graff wrote:
In the case of doing multiple items I would say the best option would
be to create a temporary folder, copy the items into the folder, and
then create a disk image from that temporary folder. You could also
try making a folder of hard links (do "man ln" in the terminal) and
using that folder as your source, but then everything has to be on the
same volume.
The last option is to create an image, mount it, copy stuff to it and
then unmount it:
----------
do shell script "hdiutil create -size 10m -volname " & theVolName & "
-fs HFS+ -attach " & theDMGFile
-- copy stuff into the volume named in the variable theVolName
do shell script "hdiutil unmount /Volumes/ " & theVolName
----------
The only trouble with this approach is that you need to set a size for
the filesystem ahead of time. Generally you can find this out by
adding up the sizes of the files and adding on another 1% for
overhead. To be safe I'd add another 100k on top of that.
- Ken
_______________________________________________
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.