Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display upgrade message on ⌘Q for outdated versions
Because of an error in the upgrade mechanism of a recent nightly build it would not check for updates for the application but would still check for bundle updates. This command will prompt users with outdated versions to check manually for an update.
- Loading branch information
1 parent
7eed647
commit ddb2f62
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?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>beforeRunningCommand</key> | ||
<string>nop</string> | ||
<key>command</key> | ||
<string>#!/bin/bash | ||
: "${TM_APP_PATH:=/Applications/TextMate.app}" | ||
{ if [[ -d "$TM_APP_PATH" && $(defaults read "$TM_APP_PATH/Contents/Info" CFBundleVersion) -lt 9409 ]]; then | ||
exec "$DIALOG" alert --title "Update Available" --body "You should go to Preferences → Software Update and Check Now" --button1 OK | ||
fi | ||
osascript -e "tell app \"$(basename "$TM_APP_PATH")\" to quit" | ||
} &>/dev/null &</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>inputFormat</key> | ||
<string>text</string> | ||
<key>keyEquivalent</key> | ||
<string>@q</string> | ||
<key>name</key> | ||
<string>Update Notification</string> | ||
<key>outputCaret</key> | ||
<string>afterOutput</string> | ||
<key>outputFormat</key> | ||
<string>text</string> | ||
<key>outputLocation</key> | ||
<string>discard</string> | ||
<key>scope</key> | ||
<string>-attr.os-version.10.6</string> | ||
<key>uuid</key> | ||
<string>615998FE-A13B-4199-A670-E5A892A1C43A</string> | ||
<key>version</key> | ||
<integer>2</integer> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters