Convert Filemaker 18 Runtime To macOS App - Shell Script (Reposted With Code)

I’d like to convert a Filemaker 18 Runtime to a Mac (Catalina) application package.

I found a youtube video that describes how to convert a shell script into a Mac OSX App.

This is the shell script:

<?xml version="1.0" encoding="UTF-8"?> CFBundleDevelopmentRegion English CFBundleGetInfoString 1.0, Copyright © 2010 __MyCompanyName__, All Rights Reserved CFBundleIdentifier com.yourcompany.ApplicationName CFBundleInfoDictionaryVersion 6.0 CFBundleName ApplicationName CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1.0 NSHumanReadableCopyright Copyright © 2010 __MyCompanyName__, All Rights Reserved. NSPrincipalClass ShellScript CFBundleExecutable main.command CFBundleIconFile app NSMainNibFile main.nib

I’ve had no luck adapting it to convert my Filemaker runtime into an app.

Thanks in advance for any advice.

Regards,

Lara

That is not a shell script. It’s a (mangled) plist (preferences file).

1 Like

Alastor, thank you very much for pointing this out.

This is what I should have quoted in my query:

Info.plist file content:

<?xml version="1.0" encoding="UTF-8"?> CFBundleDevelopmentRegion English CFBundleGetInfoString 1.0, Copyright © 2010 __MyCompanyName__, All Rights Reserved CFBundleIdentifier com.yourcompany.ApplicationName CFBundleInfoDictionaryVersion 6.0 CFBundleName ApplicationName CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1.0 NSHumanReadableCopyright Copyright © 2010 __MyCompanyName__, All Rights Reserved. NSPrincipalClass ShellScript CFBundleExecutable main.command CFBundleIconFile app NSMainNibFile main.nib *****************************************************************************

main.command file content :

#!/bin/sh

main.command

Created by yourname

Copyright (c) 2010 comapnyname, All Rights Reserved.

Get local path of Application

FILEPATH=$(dirname $0)
BASEPATH=${FILEPATH%///*}
echo $BASEPATH

Insert shell script code

osascript -e ‘tell app “Finder” to display dialog “Hello Cool IT Help”’

exit 0

Sorry, I seem to have squeezed the plist into an unreadable screed again.

Does anyone know how I might paste it here without losing its original formatting?

I tried ‘Paste and Match Style’ without success.

Zip the file and then use Copy & Paste or use [code][/code] tags:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BuildMachineOSBuild</key>
	<string>19G73</string>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>Your App</string>
	<key>CFBundleIconFile</key>
	<string>AppIcon</string>
	<key>CFBundleIconName</key>
	<string>AppIcon</string>
	…
Info.plist file content:
-------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleGetInfoString</key>
	<string>1.0, Copyright © 2010 __MyCompanyName__, All Rights Reserved</string>
	<key>CFBundleIdentifier</key>
	<string>com.yourcompany.ApplicationName</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>ApplicationName</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1.0</string>
	<key>NSHumanReadableCopyright</key>
	<string>Copyright © 2010 __MyCompanyName__, All Rights Reserved.</string>
	<key>NSPrincipalClass</key>
	<string>ShellScript</string>
	<key>CFBundleExecutable</key>
	<string>main.command</string>
	<key>CFBundleIconFile</key>
	<string>app</string>
	<key>NSMainNibFile</key>
	<string>main.nib</string>
</dict>
</plist>
*****************************************************************************

main.command file content :
---------------------------------------

#!/bin/sh

# main.command

#  Created by _yourname_
#  Copyright (c) 2010 _comapnyname_, All Rights Reserved.

# Get local path of Application
FILEPATH=$(dirname $0)
BASEPATH=${FILEPATH%/*/*/*}
echo $BASEPATH


# Insert shell script code
osascript -e 'tell app "Finder" to display dialog "Hello Cool IT Help"'

exit 0
</code>

Thank you very much, Dirk.