From 699d4d8ac94550d385d1763f010828fa5c65fb3c Mon Sep 17 00:00:00 2001 From: su_v Date: Fri, 22 Aug 2014 07:23:08 +0200 Subject: Use Inkscape icon for osascript dialog (bzr r13506.1.42) --- packaging/macosx/Resources/alert_fccache.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging/macosx/Resources/alert_fccache.sh b/packaging/macosx/Resources/alert_fccache.sh index 110c89940..50038b2ac 100755 --- a/packaging/macosx/Resources/alert_fccache.sh +++ b/packaging/macosx/Resources/alert_fccache.sh @@ -2,10 +2,14 @@ ALERT_SCRIPT="$(cat << EOM try - tell application "SystemUIServer" + set parent_path to "$CWD" + set icon_path to POSIX path of (parent_path & "/Inkscape.icns") + set front_app to ((path to frontmost application) as text) + tell application front_app display dialog "While Inkscape is open, its windows can be displayed or hidden by displaying or hiding the X11 application. -The first time this version of Inkscape is run it may take several minutes before the main window is displayed while font caches are built." buttons {"OK"} default button 1 with icon 2 +The first time this version of Inkscape is run it may take several minutes before the main window is displayed while font caches are built." buttons {"OK"} default button 1 with title "Inkscape on OS X" with icon POSIX file icon_path + activate end tell end try EOM)" -- cgit v1.2.3