• 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: PackageMaker, hdiutil & AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PackageMaker, hdiutil & AppleScript


  • Subject: Re: PackageMaker, hdiutil & AppleScript
  • From: Chris Ridd <email@hidden>
  • Date: Fri, 23 Jul 2004 08:00:05 +0100

On 22/7/04 9:11 pm, goochrules! <email@hidden> wrote:

> 3) copy the .[m]pkg files to an itermediate directory
> 4) use hdiutil to create a .dmg from the intermediate directory
>
> Its in step 3 that I have problems, specifically with copying the
> .mpkg file.  In Contents/Resources there is a link to "../Archive.bom"
> called $package-name.bom.  There is no Contents/Archive.bom for this
> .mpkg (and poking around, I don't see it in any other .mpkg I have on
> my system -- e.g., Xcode-1.2.mpkg -- but these also don't have the
> link).  When I attempt 'do shell script "cp -r *.pkg *.mpkg ..."' in
> AppleScript, I get an error from ScriptEditor:
>
> AppleScript Error
>
> Terminal got an error: cp:
> ($target-name).mpkg/Contents/Resources/($target-name).bom: No such
> file or directory

Don't use the "-r" flag, because as the cp man page says it doesn't
correctly copy symbolic links. If you pass "-R" instead, cp will do what you
want.

Cheers,

Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >PackageMaker, hdiutil & AppleScript (From: goochrules! <email@hidden>)

  • Prev by Date: Re: Preprocess
  • Next by Date: Re: Keyboard shortcut to change editor focus ?
  • Previous by thread: PackageMaker, hdiutil & AppleScript
  • Next by thread: Copy phase for just the executable of a bundle
  • Index(es):
    • Date
    • Thread