• 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: DropStuff workaround (was Re: OS X and RegEx Commands)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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>)

  • Prev by Date: Re: New AppleScript book
  • Next by Date: Re: Open Dialog via filename extension?
  • Previous by thread: Re: DropStuff workaround (was Re: OS X and RegEx Commands)
  • Next by thread: File name manipulation
  • Index(es):
    • Date
    • Thread