• 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: Can't pipe files to compileHelp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't pipe files to compileHelp


  • Subject: Re: Can't pipe files to compileHelp
  • From: Bill Cheeseman <email@hidden>
  • Date: Mon, 05 Aug 2002 09:58:36 -0400

on 02-08-04 5:34 PM, Bill Cheeseman at email@hidden wrote:

> on 02-08-04 3:23 PM, Jim Correia at email@hidden wrote:
>
>> Maybe the path of least resistance is to generate it into me
>> English.lproj folder
>
> It's beginning to appear to me that I should generate the Help.plist file
> into the English.lproj folder by placing its shell script build phase before
> the normal bundle resources build phase. Then the bundle resources build
> phase should automatically put it in the Resources folder in the application
> bundle.

Wrong on all counts.

Here's my final solution, which is fully automatic and appears to be quite
robust:

cd "$SRCROOT/English.lproj"
ls *Help.rtf 2>/dev/null *Help.rtfd 2>/dev/null | xargs compileHelp -o
"$TARGET_BUILD_DIR/$TARGET_NAME.$WRAPPER_EXTENSION/Contents/Resources/Englis
h.lproj/Help.plist"

I typed it directly into the Script text field in the shell script build
phase, to avoid having to keep a separate executable script file in the
project. The shell script build phase comes last, after all the standard
build phases. It places the Help.plist file directly into the proper
subfolder of the built application bundle. If there are no *Help.rtf or
*Help.rtfd files in the project's English.lproj folder, it doesn't generate
a Help.plist file at all, and any errors are redirected to the null device
to keep it silent.

Thanks to all for your help.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Can't pipe files to compileHelp (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: How to validate the Undo menu item?
  • Next by Date: Help! Cannot add copy build phase (or whatever phase)?
  • Previous by thread: Re: Can't pipe files to compileHelp
  • Next by thread: Re: Can't pipe files to compileHelp
  • Index(es):
    • Date
    • Thread