Thursday, February 14, 2008

back to OS X

It has been awhile since last post and now I am back on OS X, it is still less development friendly than linux in my opinion but it is much much much better that MS Windows, and it is more suitable for general office use than Linux. Overall I can say that I am happy to with OS X the little MacBook. And I am getting even happier as I learn some tricks: for example one very annoying thing about Finder is that I cannot copy just file path, and I almost bought PathFinder because it has the feature. Almost because I have discovered that a guy in support does not have clue - I asked if PathFinder can add feature that will allow user not to copy extended attributes, basically specify behavior identical to the -X switch on the cp command and this is what I got as answer:

====
Path Finder uses the OS's underlying file operations frameworks - it doesn't rely on command line commands - so if the OS doesn't support this, there's not much we can do. The command line isn't reliable enough from the perspective of what Path Finder (or the Finder) does so wrapping a UI around the cp command isn't really an option.
===

If you do not want to implement the feature that is understandable but the nonsense... no thank you.

The solution: AppleScript
tell application "Finder"
set sel to the selection as text
set the clipboard to POSIX path of sel
end tell

Just place it in ~/Library/Scripts/ and enable script menu

That is all it takes to implement the feature and now I have saved $35 and started to use and like AppleScript, maybe I should say thank you Cocoatech :)

1 comment:

Kia said...

Excellent ideas! It is very inspiring article. Thank you for sharing. Keep it up.