Tuesday, October 30, 2012

TextWrangler and formating XML & JSON Documents


TextWrangler is a good alternative for Notepad++ on Mac Os X but it quite doesn't have the plugins that notepad++ enjoys.

2 Scripts which I really use:

Format Xml Document:
http://www.bergspot.com/blog/2012/05/getting-xml-tidy-xmllint-to-work-on-textwrangler-4-0/

Format JSon Document:
http://ukitech.blogspot.in/2012/08/format-json-in-free-textwrangler.html


Cross:post from
http://bschandramohan.blogspot.in/2012/10/textwrangler-and-formating-xml-json.html

Thursday, September 6, 2012

Maximize window shortcut in Mac OS X

Very handy tip:
http://simianuprising.com/2010/03/15/mac-osx-setting-a-keyboard-shortcut-for-maximizeresize-window-green-jewel/


Saturday, May 5, 2012

F5 and F6 on MAC OS X

If you have the Mac OS X laptops and wondering what the F5 and F6 keys do like me, then here is the answer: It's for the backlit keys of the keyboard.
I was always thinking that laptop was intelligent enough to figure out when to light up the keyboard and when not to (depending on the surrounding lights) but looks like it can't :(. That is disappointing :D :)

Friday, April 20, 2012

XCode 4.3.2 install fails




If you get an error stating mobile device framework has to be installed, but errors out when trying to install it, then try the following:
Right click on the xcode.app file and click on show package contents.
Goto Contents/Resources/Packages/ and open MobileDevices.pkg
Try launching xcode after installing above and it should go ahead fine now.

MAC: Remove icons from Finder toolbar

Customize Toolbar doesn't have option to remove the icons. Right clicking the icon only gives options to
If you want to remove the icon, then press "Command" and drag the icon outside the toolbar and release the mouse.

Wednesday, January 4, 2012

Associating file types to an app in MAC


There doesn't seem to be one place like windows registry classes subclass or the file associations application where you can set the application to open a file of certain extension in Mac OS X.

If you select one file and click open with and select an App, it's associated to open that file only even if you select "Always open with". It doesn't set the open with app association for all files with that extension.

Easiest way (or is it the only way?) to do that seems to be this way:
Open File Info of a file of that extension. For e.g., to set all .sh to open in macvim, select any .sh file in Finder. Then Click Command I or right click -> File Info.
In the Open With section, select the app to open the file with
And importantly select the option "Change All". That's it - This should do.