28 Feb

Open in new tab in running Carbon Emacs

Wednesday February 28th 2007, 12:13 pm
Tags: , , ,

Carbon Emacs acts like emacsclient or gnuserv by itself, i.e. it only runs one instance and opens files in this instance from Finder automatically.

A drawback of this behaviour is that the usual server-window variable of gnuserv has no effect. When using elscreen to get tabs into Emacs the desired behaviour might be to open a new tab in the running Emacs when you open a file from Finder. This can easily be done, using my intelligent-kill command (see my elscreen posting) such that files from Finder are opened in a new tab, and you can close this tab with the usual C-x C-c:

(defun create-new-tab-and-switch-to ()
  (message "New tab")
  (elscreen-create))

(defadvice mac-ae-open-documents (before mac-ae-open-documents-advice activate)
  "Create new tab before" (create-new-tab-and-switch-to))
(ad-activate ‘mac-ae-open-documents)

0 Comments

19 Jan

Terminal.app catching up, finally

Friday January 19th 2007, 11:55 am
Tags:

That’s really good news:

Apple actually has itemized a few of changes to Leopard from the last seed, including: [...] Tab support in Terminal [...] (from MacRumors)

Was looking for another terminal app some time ago, but didn’t find anything which properly integrates into OSX and is fast enough. So another reason to look forward to Leopard in march.

0 Comments

17 Jan

Creating Cocoa app bundles from fink programs

Wednesday January 17th 2007, 3:20 pm
Tags: ,

With MacOSX the Finder and the BSD/fink subsystem have a different understanding what an application really is. If you want to launch for example “gv” from Firefox to view postscript files, it is not enough to select /sw/bin/gv in the Firefox open dialog. What you have to do, is to create an .app bundle from a fink shell script. Platypus makes that quite easy:

  • Installl and launch Platypus
  • Set intepreter to /bin/sh
  • Click on the “New” button below the “Script Path”.
  • Click on “Edit” and write something like:
#!/bin/sh
shift 1
export DISPLAY=:0.0
. /sw/bin/init.sh
exec /sw/bin/gv "$@"

It’s important that you write it, not only copy it from here. Copy&paste creates ^M (DOS like?) line ending such that the script is not runnable afterwards.

  • Select “Is droppable”
  • Change the “App Name” to something sensible, e.g. “gv”
  • Click on “Create”
  • Store the gv.app in ~/Applications.

Now you can open a postscript file in Firefox and select the new gv.app in the “Open with” dialog. Voila: “shell applications” in your Mac programs.

0 Comments

06 Jan

Quartz Extreme Truth

Saturday January 06th 2007, 2:39 am
Tags: ,

The claim of Apple’s Quartz Extreme:

And you definitely can see every one because Exposé works hand-in-hand with Quartz (the graphics engine behind everything you see in Mac OS X Tiger) to animate the scaling and preserve the visual quality of the window in its reduced size. (copied from here)

… and the truth of high quality scaling — well bilinear scaling looks different, doesn’t it?

Yes, it does, look here:

0 Comments

05 Jan

Reboot orgy

Friday January 05th 2007, 12:50 am
Tags: ,

How deep can a chat application be in the system to require a full reboot after an update?

0 Comments

01 Jan

And yes: KBounce works fine on the Mac

Monday January 01st 2007, 11:09 pm
Tags: , , ,

For those poor souls which look for information about KBounce on MacOSX: it already works fine, just by using the X version which is inside Fink. Look here. There is just no binary package yet. So you have to do fink -b install kbounce and then be prepared for around two hours of compiling, mainly Qt, kdelibs, kdegames and so on. At the end you get this:


A very nice KDE application in X inside OSX
0 Comments