Tag Archive for 'Apple'

Chax 1.4.6b

I have updated the Norwegian translation of the latest beta version of [Chax](http://www.ksuther.com/chax/) now, and sent it to Kent for submission in the final version of 1.4.6.

If anyone would like to have it before 1.4.6, just drop me a message and I'll send it to you.

Technorati Tags: ,

Fortune cookies

Applescript is a scripting language I haven't played much with since I got my Powerbook. I actually haven't found any use of it...until now ;-)

I have created a small Applescript which uses the shell "utility" fortune to display some wisdom in the everyday work. From the man page for fortune: «fortune - print a random, hopefully interesting, adage». The following script lets the user loop through random quotes and smart little notes and gives the option to send it to the clipboard:

CODE:
  1. repeat
  2.     set f_text to (do shell script "/usr/local/bin/fortune -s -n 80
  3.            /usr/local/share/fortunes/computers")
  4.     display dialog ¬
  5.         f_text with icon 1 ¬
  6.         with title ¬
  7.         "Send Fortune to Clipboard?" buttons {"Cancel", "Next", "OK"} ¬
  8.         default button "Next"
  9.     if button returned of result is "Cancel" then
  10.         display dialog "Cancel"
  11.         exit repeat
  12.     else if button returned of result is "Next" then       
  13.     else
  14.         set the clipboard to f_text
  15.         exit repeat
  16.     end if 
  17. end repeat

*(set f_text to (do shell script "/usr/local/bin/fortune -s -n 80 /usr/local/share/fortunes/computers") should be one the same line)*

As you can see, I have specified some options for the fortune command. The following bit specifies that the length of the fortunes should not be more than 80 characters:

CODE:
  1. -s -n 80

-s can be replaced for -l to specify a minimum length instead. The path which I set at the end is the path to computer related cookies.

It is also possible to use this Applescript to set new status/mood messages in iChat/Skype (and possibly other IM applications too, but I have only tested on these). To do this, replace the line which says "set the clipboard to f_text" to:

CODE:
  1. tell application "iChat"
  2.     set the status message to f_text
  3. end tell
  4. tell application "Skype"
  5.     send command "SET PROFILE MOOD_TEXT" & f_text
  6. end tell

User permissions on Mac OS X

The permission system in Mac OS X can at times be truly weird. Today, when I was going to update iScrobbler, I tried to do a plain replace of the application in the /Applications folder. My daily user is currently set as an administrator account, so that should be quite easy. When I dragged the application to the folder, Finder asked me if I wanted to replace the existing application and I confirmed this. Then I was told that I didn't have sufficient permissions to complete this task. Since the previous version was installed with my ordinary admin account, I didn't think that much of it.

The weird issue here is that I was allowed to delete the existing app by dragging it to the Trash, and then copy the new one to the application folder. Since my current account was not allowed to replace it, why was I allowed to delete it?

Technorati Tags: ,

Review: TextMate

I've been using TextMate as my text editor of choice for quite a while now, but I haven't quite been able to go in detail why. Today I came across this review though, and it states the excellence of this text editor quite well. The thing that really made me go over to it though was the screencasts on the TextMate website.

TextMate’s rise to fame has been swift. It’s been hailed as the best text editor for Mac OS X by developers the world over. We’ll be contemplating why people love it and more importantly if it really deserves the praise.

If you're on Mac OS X and do a lot of text editing (html, css, javascript, php, latex, plain tex, etc), I'll recommend you to check out this editor.

AppZapper offer at maczot.com

AppZapper is a great little app to use for deleting applications from your mac, which I purchased a license for a couple of months ago.

From their website:

AppZapper is for people who want to confidently try new apps while knowing they can uninstall them easily. Drag one or more unwanted apps onto AppZapper and watch as it finds all the extra files and lets you delete them with a single click. A slick safety system remembers which apps you want to keep safe, and the log tracks all the files you've zapped. In one Zap you'll understand it. In two you'll fall in love. Within the five free Zaps, you'll know you need to add AppZapper to your arsenal. Go ahead — try five free zaps and see AppZapper in action now.

I highly recommend this useful goodie, and macZOT.com is currently running an offer for this utility. The price will go down $0.05 for each blog entry about it, so if you blog - read this!