Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
AppController.rb | ||
| |
AppJour.rb | Sat Jun 21 00:34:54 -0700 2008 | |
| |
AppJour.xib | ||
| |
BonjourWatcher.rb | Wed Jun 25 04:35:48 -0700 2008 | |
| |
CollectionView.rb | Sat Jun 14 05:15:46 -0700 2008 | |
| |
CollectionViewItem.rb | Sat Jun 14 05:15:46 -0700 2008 | |
| |
English.lproj/ | ||
| |
GemJour.rb | Sat Jun 21 00:34:54 -0700 2008 | |
| |
GemJour.xib | Sat Jun 21 00:34:54 -0700 2008 | |
| |
GitJour.rb | ||
| |
GitJour.xib | Sat Jun 21 00:34:54 -0700 2008 | |
| |
Info.plist | Wed Jun 18 04:43:52 -0700 2008 | |
| |
Jour.rb | ||
| |
MessageView.rb | Sat Jun 21 00:34:54 -0700 2008 | |
| |
PasteJour.rb | Sat Jun 21 00:34:54 -0700 2008 | |
| |
PasteJour.xib | Sat Jun 21 00:34:54 -0700 2008 | |
| |
Rakefile | ||
| |
Readme.textile | Sat Jun 14 15:48:26 -0700 2008 | |
| |
ServiceKind.rb | Sat Jun 21 00:34:54 -0700 2008 | |
| |
main.m | ||
| |
rb_main.rb | Thu Jun 12 21:47:53 -0700 2008 | |
| |
star-jour.icns | ||
| |
starjour.xcodeproj/ | Wed Aug 13 17:28:37 -0700 2008 |
starjour
A wee rubycocoa gooey for monitoring scripts of the *jour fad.
You need xcode to compile it, but a pre-compiled version is here: http://rails-oceania.googlecode.com/files/starjour-0.1.0.zip
expando ~/.jourrc
You can double click on a message to make it do something appropriate.
The builtin service spies don’t really do much at the moment.
To implement your own behaviour, put something like this in ~/.jourrc
puts “reading .jourrc”service(‘pastejour’) do |service|
message = “Paste from #{from}” message << " to #{to}" if to [‘pastejour’, message, lambda {|msg| system(“/opt/local/bin/pastejour ‘#{msg[:service].name}’ | pbcopy”); ‘copied to pasteboard’}]
(from, to) = *service.name.split(‘-’)end
- or a whole darn class, in this form:
class Paste < OSX::NSObject
def initWithService(service) if init @service = service (from, to) = *service.name.split(‘-’) @text = “Paste from #{from}” @text << " to #{to}" if to end self end def service_name; ‘paste’ end def run system(“/opt/local/bin/pastejour ‘#{@service.name}’ | pbcopy”) ‘copied to pasteboard’ end
attr_reader :textend
service(‘pastejour’,Paste)
whence
Dr Nic was asking for help on his version (rubyjour) which we couldn’t get to fly.
I couldn’t stop thinking about it, so I had to get this done!
license
Copyright © 2008 Lachie Cox
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.










