2015-07-13 11:51:05 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
osascript << EOF
|
|
|
|
tell application "Finder"
|
|
|
|
activate
|
|
|
|
select the last Finder window
|
|
|
|
reveal POSIX file "/Applications/@APPLICATION_EXECUTABLE@.app"
|
|
|
|
end tell
|
|
|
|
EOF
|
|
|
|
|
2015-07-28 18:57:55 +03:00
|
|
|
# Always enable the new 10.10 finder plugin if available
|
|
|
|
if [ -x "$(command -v pluginkit)" ]; then
|
2015-08-05 16:10:00 +03:00
|
|
|
# add it to DB. This happens automatically too but we try to push it a bit harder for issue #3463
|
|
|
|
pluginkit -a "/Applications/@APPLICATION_EXECUTABLE@.app/Contents/PlugIns/FinderSyncExt.appex/"
|
|
|
|
# enable it
|
2015-07-31 16:13:14 +03:00
|
|
|
pluginkit -e use -i @APPLICATION_REV_DOMAIN@.FinderSyncExt
|
2015-07-28 18:57:55 +03:00
|
|
|
fi
|
|
|
|
|
2015-07-13 11:51:05 +03:00
|
|
|
exit 0
|