Hi Carsten,
You can't do this in RB 2006rx, but I do it post-build with an AppleScript
something like this (which adds info about a help book to the plist):
tell application "Finder"
set appName to "My Application.app"
set AppFolder to "Macintosh HD:RBFiles:" -- this is where your project
lives
set pathToApp to AppFolder & appName & ":"
set pathToContents to pathToApp & "Contents:"
set plistFile to (pathToContents & "Info.plist")
set plistText to open for access file plistFile with write permission
set outText to (ASCII character 13)
set outText to outText & " <key>CFBundleHelpBookFolder</key>" & (ASCII
character 13)
set outText to outText & " <string>My Application Help</string>" &
(ASCII character 13)
set outText to outText & " <key>CFBundleHelpBookName</key>" & (ASCII
character 13)
set outText to outText & " <string>My Application Help</string>" &
(ASCII character 13)
set outText to outText & "</dict>" & (ASCII character 13)
set outText to outText & "</plist>" & (ASCII character 13)
write outText starting at ((get eof plistText) - 16) to file plistFile
close access plistText
end tell
> From: Carsten Friehe <[EMAIL PROTECTED]>
> Reply-To: REALbasic NUG <[email protected]>
> Date: Sun, 17 Sep 2006 09:57:47 +0200
> To: <[email protected]>
> Subject: Adding Info to info.plist?
>
> Hi!
>
> Can someone tell me how I can add the following info to my Info.plist file
> of my REALbasic Application?
>
> -------
> <key>CFBundleURLTypes</key>
> <array>
> <dict>
> <key>CFBundleTypeRole</key>
> <string>Editor</string>
> <key>CFBundleURLName</key>
> <string>Email Address URL</string>
> <key>CFBundleURLSchemes</key>
> <array>
> <string>mailto</string>
> </array>
> </dict>
> <dict>
> <key>CFBundleTypeRole</key>
> <string>Viewer</string>
> <key>CFBundleURLName</key>
> <string>News URL</string>
> <key>CFBundleURLSchemes</key>
> <array>
> <string>news</string>
> </array>
> </dict>
> </array>
> -------
>
> Yes, I can edit the file after compiling the application but that is too
> much work. Isn't there a direct possibility in RB2006r3 or above?
>
> Best Regards,
> Carsten
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>