Linkinus Stuff

This page provides some extras for the Mac OS X IRC client.

»Linkinus is an advanced, easy-to-use IRC client for Mac OS X. Connect to thousands of IRC networks all over the world and find people to talk to about any topic, from sports to computers, cooking to auto repair.«

http://linkinus.com

Frugal Style (Colloquy Style port)

Linkinus Screenshot with running frugal

Download the style and launch it. Linkinus should copy it to the correct directory. After that, the style should be available inside the style pref-pane of Linkinus.

If you have downloaded Linkinus 1.3, please download it again. The online version contains a minor bug-fix which was not worth a new version. Don't blame anyone for this silent update, it was really almost only for this style. (Thanks nl ;o) There's no longer any version of Linkinus available where this issue is fixed. Don't ask me for it. This theme will not work in Linkinus 1.3

Found a problem? Check the issue tracker at succont.lighthouseapp.com.

Apple Script Icon
frugal.lnkStyle

Recent changes:
Now with clickable nicks inside the messages and improved display of past messages.
Smooth CSS animation for past messages

Rot13 Apple Script

Sample Apple Script to rotate any input before it is send to a channel.

on linkinuscmd( cmd ) do shell script "echo '" & cmd & "' | tr 'a-zA-Z' 'n-za-mN-ZA-M'" set theResult to the result as string end linkinuscmd

Download the script and save it to ~/Library/Application Support/Linkinus/Scripts/. No restart required, just use it with /rot13 your sample string.

Apple Script Icon
rot13.scpt

Flip Apple Script

Just another sample of Apple Script in combination with Linkinus.

on linkinuscmd(cmd) set the source to "abcdefghijklmnopqrstuvwxyz)]})]}!?.," set the destination to "ɐqɔpǝɟƃɥıɾʞ1ɯuodbɹsʇnʌʍxʎz([{)]}¡¿˙'" set cmd to reverse of characters of cmd as text set the theResult to "" repeat with char in cmd set x to the offset of char in the source if x is not 0 then set the theResult to (the theResult & character x of the destination) as string else set the theResult to (the theResult & char) as string end if end repeat end linkinuscmd

Download the script and save it to ~/Library/Application Support/Linkinus/Scripts/. No restart required, just use it with /flip your sample string.

Example: /flip the same letters flipped pǝddı1ɟ sɹǝʇʇǝ1 ǝɯɐs ǝɥʇ

Apple Script Icon
flip.scpt

Translate Script

Sample script to translate a message into a different language.

on linkinuscmd(cmd) set AppleScript's text item delimiters to " " set parts to text items of cmd set command to first item of parts set lang to first item of parts set AppleScript's text item delimiters to "%20" set request to items 2 thru -1 of parts as text set AppleScript's text item delimiters to "" set result to do shell script "curl \"https://www.google.com/uds/Gtranslate?q=" & request & "&langpair=%7C" & lang & "&v=1.0&format=html\"" set resultCopy to result set statusCode to getBetween(result, "\"responseStatus\": ", "}") if statusCode = "200" then set theResult to getBetween(resultCopy, "\"translatedText\":\"", "\",\"") else set theResult to "/debug echo Error with translation: " & getBetween(resultCopy, "\"responseDetails\": \"", "\",") end if set AppleScript's text item delimiters to "" return theResult end linkinuscmd on getBetween(mainStr, startTag, endTag) set AppleScript's text item delimiters to startTag set temp to text item 2 of mainStr set AppleScript's text item delimiters to endTag return text item 1 of temp end getBetween

Download the script and save it to ~/Library/Application Support/Linkinus/Scripts/. No restart required, just use it with /translate pt This is a test message.

Result: Esta é uma mensagem teste

The first word after /translate represents the country code into which the message will be translated. The rest of the message will be translated and displayed inside the current channel.

Apple Script Icon
translate.scpt