| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| References: | |
| >Re: DropStuff workaround (was Re: OS X and RegEx Commands) (From: John Cochrane <email@hidden>) | |
| >Re: DropStuff workaround (was Re: OS X and RegEx Commands) (From: Graff <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.