Tag: terminal
Display Music Track And Artist Information In The Dock With This Secret iTunes Terminal Command [How-To]
by John Brownlee on Nov.22, 2011, under Uncategorized
There are a lot of great apps out there that will alert you to what track is currently playing in iTunes by flashing a notice on your Mac’s desktop; Coversutra and Growltunes, to name just two. But did you know that iTunes has a secret option to display track information on your desktop every time the track changes? It’s true. It’s attractive. And it’s just a terminal command away.
Enabling iTunes track notifications is simplicity itself. Here’s how to do it:
1. Open Terminal in Applications > Utilities
2. Cut-and-paste this code into the Terminal window:
defaults write com.apple.dock itunes-notifications -bool TRUE;killall Dock
3. Your dock will close and then reopen.
4. Open iTunes and select a track. Play it, and you should see a track notification pop up in your Dock above the iTunes icon. The notification will display for a few seconds, then fade away.
This is pretty great hidden functionality, and I can only imagine that Apple didn’t make it an official option because they were worried that it would be distracting. Personally, though, if you added a couple of play controls and some stars to that pop-up, I’d never need to use something like GrowlTunes again.
Similar Posts:- Mac App Store Some Things You May Have Missed
- Use Volume Button Extender for Easy Music Control on Your iPhone [Jailbreak Superguide]
- How-To: Get MMS On Your iPhone Right Now
- Easily Convert Selected Text To Spoken Tracks In iTunes On Lion [OS X Tips]
- Assign Applications To Mission Control Spaces In Lion [OS X Tips]
How to undo a lot of Lion’s little changes using Terminal
by Bryan Schuetz on Jul.28, 2011, under Uncategorized
Mac OS X Lion has been out for about a week now, long enough for a lot of us to realize that there might be a couple of essential tweaks we’d really like to make to our new systems. However, if you want to disable some of the new animations, reclaim some lost space in Safari’s bookmarks bar, or try to roll back some of the iOS-ification that has gone on, the options available in those default preference panes just won’t cut it.
Luckily though, the good old ‘defaults write’ command for OS X’s Terminal.app is still around to help us pop open that hood and tweak all the stuff that can’t be configured with just a point and a click. Here’s a quick roundup of a few defaults write commands that might make your early days with the new big cat a bit easier.
A few words about ‘defaults write’
The ‘defaults’ command allows users to interact with their user defaults via the terminal (located in the Applications>Utilities folder). Users can read, write, and delete user preference values that often aren’t available for configuration within an application’s normal preference panel. These commands can all be executed via the Terminal, and reversed by simply repeating the command with the original value swapped in for the replacements below. In most cases you’ll have to restart the application you’re trying to tweak before you can see the command’s effect. If you don’t want to mess around with the terminal, I’m sure many of these commands will soon find their way into an updated version of Secrets, which is a GUI preference pane for configuring this type of behavior.
The roundup
- Animations. There are a lot of new animations in Lion. New windows will warp into existence from a single point on the screen; email replies will fold their way out of threaded conversations; and desktops will go swishing by as you move from space to space. There’s at least two of these you can put an end to right now if you want:
- Disable Mail Reply animations: “defaults write com.apple.Mail DisableReplyAnimations -bool YES”
- Disable New Window animations: “defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO”
- Character picker. If you’ve ever been frustrated by hunting around in the character viewer for accented characters like the “è” or the “ë” then you probably want to just leave this setting alone. If however, if you’d rather be able to hold down a key and just have it automatically repeat, like it used to, then this defaults write is for you.
- Disable the character picker: “defaults write -g ApplePressAndHoldEnabled -bool NO”
- Window restore. Want to keep applications like Preview or QuickTime from restoring old windows that happened to be hanging around the last time you quit? Just switch out the name “Preview” in the command below to target other applications.
- Disable window restore: “defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool NO”
- Bookmarks bar. You can get rid of both the Reading List icon and the Top Sites icon with this quick defaults write command:
- Clean out icons from Safari’s bookmarks bar: “defaults write com.apple.Safari ProxiesInBookmarksBar ‘()’”
- Save sheet shortcuts. Lion changes around the default save sheet shortcuts for a little added safety. If you’ve got a lot of muscle memory devoted to “Command-D” as the shortcut for “Don’t Save,” you can bring it back if you want — though to be honest, with “D” and “S” being so close together, I prefer the new settings.
- Revert save sheet shortcut: “defaults write NSGlobalDomain NSSavePanelStandardDesktopShortcutOnly -bool YES”
- iOS spell check pop-up. Part of the overall “iOS-ification” effort in Lion was to bring over those helpful but sometimes annoying little spell correction pop-ups you get as you type. The autocorrect can be enabled on a document by document basis with a right-click in “Spelling and Grammar,” but if you just want to kill it off altogether, you can.
- Disable the iOS-style spell correct: “defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool NO”
- ~/Library reveal. This last one isn’t technically a defaults command, but it’s too good to leave out. By default in Lion, user libraries are hidden. You can still navigate to the user library by holding down the “option key” while in the Go menu in the Finder, but if you want to restore ~/Library back to it’s proper place, just crack open the terminal and enter in the command below.
- Restore ~/Library visibility: “chflags nohidden ~/Library”
I’m sure more hidden commands will surface as folks begin to settle into the new OS. I grabbed as many as I could find floating around, but if you’ve got some additional ones you’d like to share, please do so in the comments.
Related research and analysis from GigaOM Pro:
Subscriber content. Sign up for a free trial.
- How to Market Your iPhone App: A Developer’s Guide
- NewNet Went Social with Partnerships Galore in Q4
- Virtual Worlds: Trends and Opportunities
Terminal.app Is Getting A Subtle Yet Gorgeous Facelift In OS X Lion
by John Brownlee on May.25, 2011, under Uncategorized
When OS X 10.7 ships later this summer, one of its least used yet most beloved system applications will be getting a gorgeous new facelift.
Starting with Lion, Terminal.app will not only gain the ability to adjust the blur on transparent terminal windows, as seen in the above screenshot, but program will finally get a true full-screen mode, perfect for immersive late night sys rooting (not to mention Nethack all-niters).
Even better? Full-screen Terminal works great with Lion’s new multitouch gestures.
Full screen Terminal is made even more interesting when combined with some of the new multitouch gestures; a four fingered sideways swipe on a touchpad will smoothly slide between full screen apps and desktops.
Here’s what one of those transitions looks like under Lion:
There’s plenty of third-party terminal applications that do stuff like this, but it’s nice to know that Apple will be fleshing out the default Terminal.app in Lion. These are changes anyone who spends time at the command line will find pleasantly surprising.
Similar Posts:- Back to Mac: OS X 10.7 Lion is OS X Meets iOS
- Mac OS X 10.7 Lion A Guided Tour – Mission Control
- iOS 4.3 Beta Seeded To Developers, Here’s What’s New (Orientation Lock Is Back!)
- Will Inertial Scrolling Come To All Apple Laptops In Future OS X Update?
- See OS X Lion’s New Gestures In Action [Video Preview]
Use Dashboard Widgets On Your Desktop [Video How-To]
by Michael Steeber on Apr.27, 2011, under dashboard, desktop, devmode, How-To, mac, mac os x, widgets
Sometimes Dashboard can seem like a hassle. While it can be very handy for quick tasks, having to open a specific application to access these widgets can become cumbersome. It is also impossible to perform other tasks while using these widgets. Well, a simple command can fix all of that, and let you enjoy widgets alongside Mac OS X applications. Find out what to do in this video.
Empty recyclebin/trash from command line
by admin on Dec.10, 2009, under Uncategorized
Some time we need to empty the trash folder when we are working on terminal. you can simple do this using the following command.
rm -rf ~/.Trash
to delete other user trash, use:
sudo rm -rf /Users/user_name/.Trash
*to delete other users trash, you have to use sudo.





