github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

lachie / starjour

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 22
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: starjour and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Watches the ether for the handy *jour scripts. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fixed up xcode project 
lachie (author)
Wed Aug 13 17:28:37 -0700 2008
commit  d5916fe0280cb9abeee4b925248e5488c54bb99a
tree    3b7abc5c9d063e12d876e2e121ad3e86f05c5119
parent  746e60acd8215182a70c4ffb40b84ecab346ef20
starjour /
name age
history
message
file .gitignore Loading commit data...
file AppController.rb
file AppJour.rb
file AppJour.xib
file BonjourWatcher.rb
file CollectionView.rb
file CollectionViewItem.rb
directory English.lproj/
file GemJour.rb
file GemJour.xib
file GitJour.rb
file GitJour.xib
file Info.plist
file Jour.rb
file MessageView.rb
file PasteJour.rb
file PasteJour.xib
file Rakefile
file Readme.textile
file ServiceKind.rb
file main.m
file rb_main.rb
file star-jour.icns
directory starjour.xcodeproj/
Readme.textile

starjour

A wee rubycocoa gooey for monitoring scripts of the *jour fad.

Starjour - panels branch
Uploaded with plasq’s Skitch!

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|
(from, to) = *service.name.split(‘-’)

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’}]

end

  1. or a whole darn class, in this form:

class Paste < OSX::NSObject
attr_reader :text

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

end

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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server