Posts

Showing posts with the label Mac os

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 For assigning shortcuts - Goto preferences in TextWrangler (Cmd + ,), Click on Menus & Shortcuts Select Text on the right side box. Expand Text Filters Click on the plugin (on to the right most side) Type a unique key combination Close Preferences.

Mac OS X Lion Tweaks Tool

Mac OS X Tweaks - Very useful tool especially to show and hide hidden files. http://ifredrik.com/applications/download_step.html

XCode 4.3.2 install fails

Image
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

Image
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.

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.

Mac - dvd drive not visible in Finder

Image
In MAC, the dvd drive gets listed in finder only if a dvd is present. Else it's hidden. In some rare cases, even after you inserted a drive, the disk might not be visible in finder and since there is no eject hardware button near the DVD, there doesn't seem to be a way for removing the disk. Browsing around, found the following ways (from multiple sources) to eject the disk and re-insert it: Force restart finder. Open disk utilities (Applications/Utilities/DiskUtility) and the drive should be available there. Right click on it and select eject. Command line always rocks. Run the following in a terminal:  drutil tray eject Cross posted from:  http://techieconnect.blogspot.com/2011/11/mac-dvd-not-visible-in-finder.html

Open Terminal window here - Mac OS X

It isn't as easy as updating registry key in windows (or atleast I don't know). Found this link to be good source for app to do that. https://sites.google.com/site/michaelsafyan/software-engineering/open-in-terminal Chose the one with customized terminal window icon. If the folder Finder doesn't exist in your 'Application Support' directory, then do create it. If you have any other easy ways of doing this, let me know.