-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFileMakerDDRplus.command
More file actions
executable file
·38 lines (32 loc) · 1.36 KB
/
Copy pathFileMakerDDRplus.command
File metadata and controls
executable file
·38 lines (32 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#
# FileMaker DDR Plus Launcher
# ============================
# Double-click this file to run FileMaker DDR Plus with GUI file dialogs.
#
# This script automatically finds the Python scripts in the Helper directory
# and launches the file picker interface.
#
# Get the directory where this script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Path to the bridge script
BRIDGE_SCRIPT="$SCRIPT_DIR/Helper/filemaker_bridge.py"
# Check if Python 3 is available
if ! command -v python3 &> /dev/null; then
osascript -e 'display dialog "Python 3 is required but not installed.\n\nPlease install Python 3 from python.org" buttons {"OK"} default button "OK" with icon stop'
exit 1
fi
# Check if bridge script exists
if [ ! -f "$BRIDGE_SCRIPT" ]; then
osascript -e 'display dialog "FileMaker DDR Plus files not found.\n\nPlease ensure all files are in place." buttons {"OK"} default button "OK" with icon stop'
exit 1
fi
# Run the bridge script with GUI mode
cd "$SCRIPT_DIR/Helper"
python3 "$BRIDGE_SCRIPT" --gui --emoji
# Show completion message
if [ $? -eq 0 ]; then
osascript -e 'display dialog "DDR processing complete!" buttons {"OK"} default button "OK" with icon note'
else
osascript -e 'display dialog "DDR processing failed. Check the terminal output for details." buttons {"OK"} default button "OK" with icon stop'
fi