This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added install command, also now saves class/ref opening settings when…
… SC closes
- Loading branch information
Rob Watson
committed
Jan 17, 2009
1 parent
067f4cb
commit 0add10c
Showing
4 changed files
with
74 additions
and
2 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,52 @@ | ||
<?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>#!/usr/bin/env ruby | ||
def could_not_locate | ||
puts "<span style='color:red'>There was a problem</span><br/>" | ||
puts "Probably, you do not have SuperCollider installed, or you are using a non-standard user support directory.<br/><br/>" | ||
puts "You will need to manually copy <code>supercollider-tmbundle/Support/classes/TextMate.sc</code> into your SC class path" | ||
end | ||
puts "=======================================<br/>" | ||
puts "Textmate SuperCollider bundle<br/>" | ||
puts "by <a href='http://rfwatson.github.com'>R.Watson</a>.<br/>" | ||
puts "=======================================<br/><br/>" | ||
if File.exists?(File.expand_path("~/Library/Application Support/SuperCollider/Extensions/TextMate.sc")) | ||
puts "<span style='color:green'>SuperCollider bundle already installed</span>.<br/>" | ||
else | ||
if not File.directory?(File.expand_path("~/Library/Application Support/SuperCollider/Extensions")) | ||
could_not_locate | ||
else | ||
if system %Q{ln -s '#{ENV['TM_BUNDLE_SUPPORT']}/classes/TextMate.sc' '#{File.expand_path("~/Library/Application Support/SuperCollider/Extensions/TextMate.sc")}'} | ||
puts "<span style='color:green'>Successfully installed TextMate class</span>.<br/><br/>" | ||
puts "Relaunch SuperCollider to complete installation." | ||
else | ||
puts "There was an error installing the class file.<br/><br/>" | ||
could_not_locate | ||
end | ||
end | ||
end | ||
</string> | ||
<key>fallbackInput</key> | ||
<string>document</string> | ||
<key>input</key> | ||
<string>selection</string> | ||
<key>keyEquivalent</key> | ||
<string>$@</string> | ||
<key>name</key> | ||
<string>Install</string> | ||
<key>output</key> | ||
<string>showAsHTML</string> | ||
<key>scope</key> | ||
<string>source.supercollider</string> | ||
<key>uuid</key> | ||
<string>BB37ACE9-8262-4AF6-B3C6-43DC0AF2B370</string> | ||
</dict> | ||
</plist> |
File renamed without changes.
File renamed without changes.
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