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

Moving folders in Finder without copying System
Due to a issue with Safari crashing I had to perform an Archive & Install OS repair. I recovered my user account from Time Machine but there isn't enough space or time to download all the pictures, movies and installers. So I figured I'd just move them from the old account folder. Only the finder wanted to copy the folders not move them. It would move the files. So I wrote an AppleScript script to force it to move the folders. Remember this is only for moving folders on the same partition.

on run
tell application "Finder"
 
set theSource to choose folder with prompt "Source"
set theDestination to choose folder with prompt "Destination"
move items of theSource to theDestination

end tell
end run


[crarko adds: I tested this, and it works as described. There was an earlier hint about moving (rather than copying) and some of the comments there presented other alternatives.]
  Post a comment  •  Comments (27)  
  • Currently 2.48 / 5
  You rated: 5 / 5 (31 votes cast)
 
[56,527 views] Email Article To a Friend View Printable Version
Use AppleScript for a Virtual Numpad System
The keyboards on Mac notebooks, and now desktops, too, have no number pad. It used to be that notebook keyboards had a numlock key, and you could use the letter keys on the right hand side of the keyboard as a number pad, but that feature seems to have vanished. It can, however, be brought back with AppleScript. [crarko adds: You can get it by pressing and holding the 'fn' key, which is also cumbersome.]
read more (718 words)   Post a comment  •  Comments (10)  
  • Currently 2.04 / 5
  You rated: 1 / 5 (27 votes cast)
 
[17,652 views] Email Article To a Friend View Printable Version
Refresh a widget in Dashboard System
To refresh a widget in the Dashboard, open the Dashboard, select a widget, and press Command-R. There is a slick little animation, and the widget will refresh.

[crarko adds: I've seen this before, but on searching didn't find it here as a hint. Here is a previous hint with a list of other interesting modifier keys. It looks like the wiki mentioned there is no longer active, so I'll see about creating a new one. Thanks to reader Reuven Volnoboy for pointing this out.]
  Post a comment  •  Comments (0)  
  • Currently 2.72 / 5
  You rated: 4 / 5 (29 votes cast)
 
[7,758 views] Email Article To a Friend View Printable Version
Time Machine: Mount backup disk on demand System
It is both inconvenient and less safe to keep backup volumes mounted when not in use. A mounted volume is more prone to corruption, and open file dialogs needlessly spin up mounted volumes, contributing to a user experience latency that is most apparent if the primary drive is solid state.

By creating an /etc/periodic/hourly directory modeled after the existing /etc/periodic/daily directory, and adapting com.apple.periodic-daily.plist, there is a place to put a script that handles mounting and unmounting the Time Machine backup disk, and launching Time Machine.
read more (674 words)   Post a comment  •  Comments (22)  
  • Currently 2.88 / 5
  You rated: 5 / 5 (24 votes cast)
 
[18,038 views] Email Article To a Friend View Printable Version
DasBoot 2.0 now supports Snow Leopard System
Another valuable free utility has gained Snow Leopard support, with the release of DasBoot 2.0.

This is a tool for making custom boot devices from a USB flash drive or other USB or FireWire media, including an iPod. It can import a variety of diagnostic utilities (Disk Warrior, Drive Genius, TechTool Pro and more) from their bootable install discs and configure them for use on the same device. You'll obviously need the appropriate license key to use commercial software.

It's also possible to update the installed software, so there is no need to burn a new disc every time one piece of software gets an update. This version of DasBoot works with 10.5 and up; there is also an older (1.0.3) version available for Tiger.

The only real limitation comes from the inability of PowerPC Macs to boot OS X from a USB drive. If you need to repair both Intel and PowerPC systems, a portable drive with a FireWire 400 (and possibly USB as well) interface is the way to go.

[crarko adds: I've used previous versions of this on both an 80 GB iPod and a small FireWire 400 drive, and it works great. Between this, AppleJack, and Winclone if you use BootCamp, it's easy to build a comprehensive repair and recovery suite. I've had to try to customize similar tools in the Windows world, and it's quite a bit more of a pain in the neck to accomplish.]
  Post a comment  •  Comments (8)  
  • Currently 2.13 / 5
  You rated: 1 / 5 (16 votes cast)
 
[8,574 views] Email Article To a Friend View Printable Version
DirectoryService high CPU utilization System
I had been experiencing extremely high CPU utilization by the DirectoryService process. Most of the time it was at 65% CPU usage, and sometimes it was up to 190%.

I traced this to my usage of the /etc/hosts file (with 16K+ entries) to combat website ads. Each entry in the /etc/host file had the form: 127.0.0.1 <hostname>.
read more (183 words)   Post a comment  •  Comments (19)  
  • Currently 2.11 / 5
  You rated: 5 / 5 (27 votes cast)
 
[20,271 views] Email Article To a Friend View Printable Version
AppleJack 1.6 for Snow Leopard System
AppleJack has been updated to work with Snow Leopard with the release of version 1.6.

In a nutshell, AppleJack is a command-line utility and series of scripts for running repair tasks in Single User Mode when a bootable startup disc in not available. It's great for those times when all you get is a blue screen and no GUI startup, and need to troubleshoot and repair the problem, but left your complete CLI reference book in your other suit.

To use it, bring up Single User Mode by holding down Command-S at startup and then when the prompt is available type applejack. Use the menu provided or select 'auto pilot' to perform all of the basic tasks, such as filesystem and permission repair, cache clearing, and more. There is an 'Expert mode' available by typing 'x' at the AppleJack prompt to do more operations on the hardware and user accounts. Documentation is provided in a Man page; type man applejack for that.

This version supports 10.4 and up. Since Apple usually changes things under the hood with each major OS release a tool like AppleJack has to be updated for compatibility, so older versions didn't function properly in 10.6.

For more details, there was an excellent review of the previous version on Macworld. This will give you a good feel for this tool.

[crarko adds: I tested this, and it works as described. I swear by AppleJack, and am delighted it's finally 10.6 friendly. Just remember it needs to be installed before you have trouble, and not after the fact.]
  Post a comment  •  Comments (11)  
  • Currently 3.12 / 5
  You rated: 3 / 5 (26 votes cast)
 
[11,980 views] Email Article To a Friend View Printable Version
How to cut and paste files, merge folders System
There is finally a way to cut and paste files and merge folders in Snow Leopard. A new (shareware) Mac menu bar application, called moveAddict, provides this function, so you can use Cmd+X and Cmd+V in the Finder.
read more (148 words)   Post a comment  •  Comments (18)  
  • Currently 2.85 / 5
  You rated: 2 / 5 (26 votes cast)
 
[25,840 views] Email Article To a Friend View Printable Version
Console.app freezes on launch System
If you are experiencing a condition where the Console freezes when launched, and/or Terminal is very sluggish when starting up, it may be due to an accumulation of log files.

This blog post by Shannon Hicks shows how the problem was traced to a glut of hundreds of log files in /private/var/log/asl. [crarko adds: I just looked at my Mac, and there are only about 25 files in mine. That seems to be OK.]

If you don't need to keep these logs for some other reason, they can be deleted using the Terminal command:

sudo rm -f /private/var/log/asl/*

[crarko adds: I haven't tested this one. If you don't have the issues described, it's best just to leave the log files alone. See the comments below for more information about the log rotation process.]
  Post a comment  •  Comments (10)  
  • Currently 2.20 / 5
  You rated: 1 / 5 (20 votes cast)
 
[6,099 views] Email Article To a Friend View Printable Version
Un-minimize window on application switch System
Are you used to hiding windows instead of minimizing them because Command+Tab switching to an application does not bring up the document window?

When searching for a solution to this the only things that came up were applications like LiteSwitch and Witch. A bit of the functionality is also available in the built-in application switcher, but it's well hidden.

When you are cycling applications with Command+Tab, find the application you want to activate and press Option, then release the Command key and the window will un-minimize. Maybe there's a way for this to become default behavior by doing a defaults write command in Terminal, but I don't know how.

[crarko adds: I tested this, and it works as described. It seemed to only open the most recently minimized window if there were several. There is an earlier hint about modifier keys, but it doesn't mention this function.]
  Post a comment  •  Comments (4)  
  • Currently 2.53 / 5
  You rated: 4 / 5 (17 votes cast)
 
[10,279 views] Email Article To a Friend View Printable Version