summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-08-22 05:23:08 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-08-22 05:23:08 +0000
commit699d4d8ac94550d385d1763f010828fa5c65fb3c (patch)
tree82beae647193746e0ad9f9b9f565ece025edec94
parentImprove relocation support for ImageMagick libs and modules (diff)
downloadinkscape-699d4d8ac94550d385d1763f010828fa5c65fb3c.tar.gz
inkscape-699d4d8ac94550d385d1763f010828fa5c65fb3c.zip
Use Inkscape icon for osascript dialog
(bzr r13506.1.42)
-rwxr-xr-xpackaging/macosx/Resources/alert_fccache.sh8
1 files 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)"