Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

AppleScript to disable rubber band scrolling System 10.7
A recent hint gave instructions for enabling and disabling rubber band scrolling in Mac OS X Lion, using a Terminal command. This hint contains an Applescript to do the same, without having to use Terminal.

Compile this script in Applescript Editor and run it. It will let you enable or disable rubber band scrolling.
display dialog "Disable or enable rubber banding?" buttons {"Enable", "Disable", "Cancel"} default button "Cancel" with title "Rubber Band Control" giving up after 15

if button returned of the result is "Disable" then
   do shell script "defaults write -g NSScrollViewRubberbanding -int 0"
else if button returned of the result is "Enable" then
   do shell script "defaults delete -g NSScrollViewRubberbanding"
end if

[kirkmc adds: Well, it seems that disabling rubber band scrolling is quite popular! After a first hint, then yesterday's hint about disabling rubber band scrolling in iTunes, here's another, perhaps easier way, using AppleScript.]
  Post a comment  •  Comments (7)  
  • Currently 3.57 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (7 votes cast)
 
[4,250 views] Email Article To a Friend View Printable Version
Disable elastic (rubber band) scrolling in iTunes Apps

A recent hint described how to disable elastic scrolling in many Lion applications. You can disable this effect in iTunes alone by setting the hidden preference "disable-elastic-scrolling".

To turn off elastic scrolling in iTunes, enter this in Terminal:

defaults write com.apple.iTunes disable-elastic-scroll -bool YES

To turn it back on:

defaults write com.apple.iTunes disable-elastic-scroll -bool NO

To delete the preference:

defaults delete com.apple.iTunes disable-elastic-scroll

I have included this option in the latest version of my AppleScript Change Hidden iTunes Preferences.


[kirkmc adds: I find it interesting that this key uses the term "elastic" and the one in the previous hint uses "Rubberbanding." Which means that I had to make the title of this hint include both...]
  Post a comment  •  Comments (2)  
  • Currently 4.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[4,231 views] Email Article To a Friend View Printable Version
Easily add text to the Login window and lock screen System 10.7
To add text to the login window in Lion, there's no need anymore to use a system utility or to manually edit a plist file, as it was the case in earlier versions of Mac OS X. This can be useful to display an "If found" message.

Go to the Security & Privacy preference pane of System Preferences. Under the General tab, check the second box, "Show a message when the screen is locked," and then edit the message using the "Set Lock Message..." button.

This message displays near the bottom of the Login window or the lock screen. You can make multiple paragraphs by pressing Option-Return to go to a new line.

[kirkmc adds: This was indeed covered several times in the past, and required futzing around with .plist files. There were hints in 2002, 2005 and 2011. This method is much simpler, and deserves a mention.]
  Post a comment  •  Comments (9)  
  • Currently 4.17 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (12 votes cast)
 
[10,012 views] Email Article To a Friend View Printable Version
Shift-Option modifier for fine volume control returns in 10.7.4 System 10.7
The ability to modify the volume in smaller increments was previously available in earlier versions of OS X. Holding down Shift and Option before pressing the Volume keys on your keyboard would let you adjust the volume in quarter-steps. This ability was absent in OS X 10.7, but has returned in 10.7.4. This is not mentioned in the release notes.

[kirkmc adds: Well, I've never used this, so I'm not sure whether it was indeed missing. If anyone has a pre-10.7.4 version of Lion running, can you test it? (I have one in a virtual machine, but changing the volume from the keyboard doesn't affect VMs.) This feature first appeared in 10.5.]
  Post a comment  •  Comments (19)  
  • Currently 4.15 / 5
  You rated: 2 / 5 (13 votes cast)
 
[8,209 views] Email Article To a Friend View Printable Version
Fix possible hibernation activation in desktop Macs System 10.7
I had some swapping issues the other day on my Mac mini, so I went into /var/vm to check how many files were there. I was surprised to find a sleepimage file; this is a file that is written when a Mac goes into hibernation mode. This file was about 9 GB - or the size of my RAM (8 GB) plus a bit.

Hibernation is only supposed to be used on laptops, but in an informal query of acquaintances (read: Twitter followers), I found that several people had seen this issue after the 10.7.4 upgrade. In addition to the space used, hibernation mode means the Mac takes a lot longer to go to sleep.

This hint from 2006 shows how to turn off hibernation and save that disk space. Essentially, you run the following command:
sudo pmset -a hibernatemode 0
(I didn't run the second command, and it doesn't seem to be needed.)

So, if you've found that your desktop Mac has lost a lot of disk space, check in /var/vm.

You can also check which mode your Mac is in by running this command:
pmset -g | grep hibernatemode
If the result is 0, then you're in normal sleep mode. See man pmset for more information about the different sleep modes.
  Post a comment  •  Comments (6)  
  • Currently 4.00 / 5
  You rated: 4 / 5 (8 votes cast)
 
[6,346 views] Email Article To a Friend View Printable Version
New poll: Mac App Store and software purchases Apps
In honor of the "sandboxalypse," or the day that Apple started imposing sandboxing rules on the Mac App Store, I thought it would be interesting to see how Mac OS X Hints readers use the Mac App Store. Head over to our new poll about the Mac App Store and software purchases.
  Post a comment  •  Comments (14)  
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[3,921 views] Email Article To a Friend View Printable Version
Easily toggle the menu bar in full screen mode System 10.7
I got sick of running my cursor up to the top of the screen to see my battery life, the time, etc., and I realized that there is a simple way to display the menu bar when in full screen mode. Just invoke the Spotlight keyboard shortcut, which by default is Command-Space. Use that key combination once to show the menu bar, then again to hide it.

[kirkmc adds: Nice. I don't really get full screen mode, but the times I have used it, I've been confronted with that problem, especially wanting to see the time.]
  Post a comment  •  Comments (8)  
  • Currently 3.70 / 5
  You rated: 5 / 5 (10 votes cast)
 
[11,516 views] Email Article To a Friend View Printable Version
View console log in Terminal Apps
Back in the day, prior to Leopard, there was a console.log file, which contains errors and messages for the current user's account. When Leopard came around, this file was removed, and the system-wide logging system (ASL) replaced it. Those messages are still recorded, but when you view logs in Console, you can't see them on their own.

I was doing some research today for an article, and wondered where that file went, and how one could view it, since the full system.log contains so many entries that it can be hard to wade through. I found a forum thread from 2008 which explains that you can see what used to be in console.log by running syslog -C in Terminal. You can also run this command to save these entries in a file, then view them in vim: syslog -C > /tmp/console.log; view /tmp/console.log. Or, if you simply want to save this information in a text file, you can do this: syslog -C > /Desktop/console.log.

While this isn't new, it's good to know, if you're looking through logs in Console in search of information.
  Post a comment  •  Comments (13)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[15,492 views] Email Article To a Friend View Printable Version
Sync OS X Lion Address Book with Nokia device Phones
Until 10.6, all Nokia devices were directly supported by iSync. iSync still runs under 10.7, but has to be installed manually from a backup because it's no longer supported (you'll have to find a 10.6 installation to get a copy).

However, the introduction of iCloud finally broke iSync, too. You will not be able to sync a Nokia phone with iSync if you have iCloud activated.

The solution is:
  1. Create a new user (called for example NokiaSync)
  2. Select all Address Book entries. Drag the list of entries to your desktop. This creates a .vcf file.
  3. Copy this file to the Desktop of your new user NokiaSync (via the NokiaSync user's Public folder, or some other means).
  4. Drag the .vcf file into this user's Address Book.
  5. Launch iSync for user NokiaSync and sync NokiaSync's address book with your Nokia phone.
The key is that while every other user on your computer can use iCloud, the new user NokiaSync will not use iCloud and will be used only for syncing with your Nokia phone. You can repeat above steps 2 to 5 regularly, whenever you've made updates to your Address Book.

If you add new entries on your Nokia's address book, you can do the opposite process and Mac OS X will reliably detect which new entries were added and will copy these to your regular user's Address Book.

[kirkmc adds: I don't have a Nokia phone to test this, but it makes sense. It seems like a lot of work to update a contact list.]
  Post a comment  •  Comments (6)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[12,755 views] Email Article To a Friend View Printable Version
Toggle audio when changing volume System
Pressing the Shift key while changing volume with volume keys on your keyboard will toggle the "Play feedback when volume is changed" setting.

As I unchecked this preference, I find it very useful to get a quick idea of the volume when I plug my MacBook to an unknown audio system.

[kirkmc adds: This is a dupe, but the original hint is so old (it was back in 2002) that I felt it would be useful to run this.]
  Post a comment  •  Comments (9)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (11 votes cast)
 
[3,423 views] Email Article To a Friend View Printable Version