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

Fix a non-functional (Error 11) Time Machine System
A while back, Time Machine on my DP G4 running 10.5.8 started failing, after having run for several months without any problems. This is the error from the logs:
Starting standard backup
Backing up to: /Volumes/Athena/Backups.backupdb
Event store UUIDs don't match for volume: Entwife
Event store UUIDs don't match for volume: Fangorn
Backup content size: 60.9 GB excluded items size: 56.9 MB for volume Entwife
Backup content size: 60.5 GB excluded items size: 56.9 MB for volume Fangorn
No pre-backup thinning needed: 145.59 GB requested (including padding), 931.15 GB available
Error: (-36) SrcErr:NO Copying /Applications/Adium.app/Contents/Frameworks/AIUtilities.framework/Versions/A/AIUtilities to /Volumes/Athena/Backups.backupdb/Treebeard/2009-10-03-235253.inProgress/9C37B727-1C30-42C6-B3AA-D0AB9FF4DBF6/Entwife/Applications/Adium.app/Contents/Frameworks/AIUtilities.framework/Versions/A
Stopping backup.
Error: (-8062) SrcErr:NO Copying /Applications/Adium.app/Contents/Frameworks/AIUtilities.framework/Versions/A/AIUtilities to /Volumes/Athena/Backups.backupdb/Treebeard/2009-10-03-235253.inProgress/9C37B727-1C30-42C6-B3AA-D0AB9FF4DBF6/Entwife/Applications/Adium.app/Contents/Frameworks/AIUtilities.framework/Versions/A
Copied 0 files (3.4 MB) from volume Entwife.
Copy stage failed with error:11
Backup failed with error: 11

So I tried all the usual fixes:

  1. I reformatted and rebuilt all my drives.
  2. I ran Disk Utility to repair the drives and permissions. More than once.
  3. I reapplied the 10.5.8 Combo Update.
  4. I was backing up to a WD 1TB My Book Studio. I tried backing up the internal drive instead, but that failed too.
  5. If I excluded an application from backup, it failed on the next app in the line.
  6. I found nothing online (Google, Apple, et.al.) that said do X, Y, and Z, and all will be well, even though this error is all over the web. Not even this KB article helped.
  7. I arrested all the usual suspects.
In short, nothing worked. But, "He that perseveres to the end, the same shall be saved." I still don't know the cause (old age prehaps) but I found a solution. I booted from my 10.5 DVD, archived and installed OS X, and then updated my software from there to 10.5.8. Problem solved.

[robg adds: This seems like a very particular issue, but just in case it's happening to anyone else, here's one solution at least.]
  Post a comment  •  Comments (6)  
  • Currently 1.27 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (11 votes cast)
 
[8,100 views] Email Article To a Friend View Printable Version
Disk Utility's RAID feature doesn't seem to work System
I just wasted a couple of days trying to make Apple's Disk Utility RAID tool create a mirror of my Mac Mini's internal drive on an external FireWire drive. I finally gave up as the external partition was getting constantly corrupted (and the advertised "automatic rebuilding" didn't work).

I successfully used a mirrored RAID on an older G4 Tiger system with two internal drives, but according to the folks at SoftRAID, Apple's software RAID is basically intended for XServes and isn't even tested on external drives.

None of Disk Utility's help files give you any warning about this. In fact, in Snow Leopard, they don't accurately reflect the operation of the program: I saw a Demote button on the RAID setup panel that wasn't even mentioned in Help, and some of the RAID procedures described in Help simply didn't work.

I gave up on the RAID idea and instead have scheduled SuperDuper! to periodically make a Smart Update image copy of my boot drive to the external drive. Not quite as secure, but a lot less hassle! If you don't have an XServe and you really, really want a RAID, it appears that SoftRAID may be the best solution. It isn't cheap, though ($129 download).

[robg adds: If you've used Apple's RAID tool successfully on a recent Mac OS release, feel free to share your experiences. I've never tested it, so I can't confirm the above experiences.]
    •  Comments (24)  
  • Currently 1.77 / 5
  You rated: 5 / 5 (26 votes cast)
 
[18,995 views] Email Article To a Friend View Printable Version
Launch items in Stacks via AppleScript and keyboard System
Unfortunately, my two favorite application launchers -- Butler and Quicksilver -- aren't quite up to snuff with Snow Leopard just yet. Spotlight works OK most of the time, but I've started to rely on the Dock's stacks for launching what I need. However, I'm very keyboard-centric, and I don't like going to my mouse any more than I have to, so I wrote an AppleScript that will open the Stack for me, and using 10.6's new Services features, I can trigger that AppleScript with a keyboard shortcut. Here is the script:
tell application "System Events"
  key code 99 using control down -- ctl-F3 to focus on Dock
  keystroke "Applications" -- should take focus to Applications folder
  key code 36 -- hit Return to open stack
end tell
Once the Stack opens, you can type in the first few letters of an application and hit return to launch it. The script itself is fully compatible with 10.5 as well, but assigning it to a keyboard shortcut natively is not. The following bit is 10.6 only.
read more (207 words)   Post a comment  •  Comments (9)  
  • Currently 1.78 / 5
  You rated: 4 / 5 (9 votes cast)
 
[5,895 views] Email Article To a Friend View Printable Version
Switch between app windows in multiple Spaces System
I just discovered that you can quickly jump between an application's windows in multiple Spaces by repeatedly pressing its Dock icon. The first click will activate the application, and then each subsequent click will jump to a different Space that contains a window from that application. This works if you don't have the "When switching to an application, switch to a space with open windows for the application" checked in Spaces' settings panel.

[robg adds: When I tested this (it works in both 10.5 and 10.6), it didn't seem to matter whether or not the "When switching to an application..." preference was set or not; it worked with it enabled or disabled.]
  Post a comment  •  Comments (4)  
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (8 votes cast)
 
[5,770 views] Email Article To a Friend View Printable Version
Command-click on Stack items to show in Finder System
I do not recall if this was present in 10.5, but at any rate, it's a feature of Snow Leopard -- just hold down Command prior to clicking any item in a Stack, and that item's folder will open in the Finder.

[robg adds: I believe this worked in 10.5, too, and I thought for sure we'd documented it here before. However, my searches came up blank, so here it is.]
  Post a comment  •  Comments (6)  
  • Currently 1.44 / 5
  You rated: 1 / 5 (9 votes cast)
 
[4,628 views] Email Article To a Friend View Printable Version
Hide the Time Capsule Time Machine backup file System
I did not like to see the backup sparsebundle image from the Time Machine backup in the Time Capsule directory. So I made it hidden with this command in Terminal (after I used cd to get into the Time Capsule directory):
chflags -R hidden MyComputername.sparsebundle/
The backup still works, even though the backup file is hidden.
  Post a comment  •  Comments (8)  
  • Currently 2.20 / 5
  You rated: 1 / 5 (15 votes cast)
 
[10,818 views] Email Article To a Friend View Printable Version
Transfer clipboard contents from one Mac to another System
When transferring small bits of text to another machine, I used to use email. Then my email would fill up with annoying little bits of text. The following Terminal command will transfer the text from the clipboard a computer that can be reached by ssh. This method only transfers plain text, but that is 90% of my needs. (If anyone figures out formatted text or pics, let me know!)

In Terminal, type this:
pbpaste | ssh user@hostname 'pbcopy'
Alternatively, I might want to keep the text in a file on the distant computer. This works for that purpose:
pbpaste | ssh user@hostname 'cat > ~/file_name.txt'
[robg adds: For true clipboard sharing between machines, I'm partial to PTHPasteboard Pro, whichh makes it simple to keep two or more machine's clipboards in sync -- text and graphics are both handled with ease. There are numerous other solutions out there, too, such as DropCopy (which is also very useful for transferring files).]
  Post a comment  •  Comments (14)  
  • Currently 2.40 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (10 votes cast)
 
[8,549 views] Email Article To a Friend View Printable Version
Sort Downloads folder based on file type System
I have found several ways to sort your downloads folder based on the date the file(s) were downloaded, but none that sort it based on the files that are in it, so I decided to write an AppleScript to do just that (although it could easily be used on any folder). This allows me to easily find files even if I can't remember when I downloaded them (or even their names).

Here's the code; you'll need to edit the top section to reflect the proper path to your Downloads folder.
(*Downloads folder sorter – an applescript designed to help organise your downloads folder*)

-- If your downloads folder is in your user's home folder, comment out the first line and uncomment the second.
set downloadsFolder to ((path to desktop) & "Downloads" as string)
-- set downloadsFolder to ((path to home folder) & "Downloads" as string)

-- the list of folders that your files/folders will be sorted into, you may edit the names, but adding or removing items will require further customisation later on, this will be indicated
set foldersList to {"Applications", "Archives", "Folders", "Other"}

--these are the lists of extensions that correspond to the folder names above, N.b. for folders use "Folders" and for any file type (i.e. other) leave the list blank. If you have added or removed items from the list above you must also add or remove items from here
set extList1 to {"app"}
set extList2 to {"zip", "dmg", "sit", "hqx", "tar", "gz", "pkg", "bin", "sitx", "rar"}
set extList3 to {"Folders"}
set extList4 to {}
-------------------------------------------------------------------------------

set finalFolders to {}
set includeFolders to false
tell application "Finder"
  
  -------------------------------------------------------------------------------
  --This section creates the folders (if they are not already there) so, again, if you have added or removed items from the foldersList above you must also add or remove items from here
  if not (alias (downloadsFolder & ":" & (item 1 of foldersList) & ":") exists) then
    make new folder at (alias downloadsFolder) with properties {name:(item 1 of foldersList)}
  end if
  if not (alias (downloadsFolder & ":" & (item 2 of foldersList) & ":") exists) then
    make new folder at (alias downloadsFolder) with properties {name:(item 2 of foldersList)}
  end if
  if not (alias (downloadsFolder & ":" & (item 3 of foldersList) & ":") exists) then
    make new folder at (alias downloadsFolder) with properties {name:(item 3 of foldersList)}
  end if
  if not (alias (downloadsFolder & ":" & (item 4 of foldersList) & ":") exists) then
    make new folder at (alias downloadsFolder) with properties {name:(item 4 of foldersList)}
  end if
  -------------------------------------------------------------------------------
  
  try
    set allFiles to every file in alias downloadsFolder whose name does not end with ".part" and name does not end with ".download" and name does not end with ".savedSearch" and size is not 0
  on error
    set allFiles to {}
  end try
  
  -------------------------------------------------------------------------------
  --This section determines where to move any other folders in the downloads folder, so, again, if you have added or removed items from the foldersList above you must also add or remove items from here
  if (extList1 contains "Folders") or (extList2 contains "Folders") or (extList3 contains "Folders") or (extList4 contains "Folders") then
    if (extList1 contains "Folders") then
      set foldersFolder to (downloadsFolder & ":" & (item 1 of foldersList) as string)
    else if (extList2 contains "Folders") then
      set foldersFolder to (downloadsFolder & ":" & (item 2 of foldersList) as string)
    else if (extList3 contains "Folders") then
      set foldersFolder to (downloadsFolder & ":" & (item 3 of foldersList) as string)
    else if (extList4 contains "Folders") then
      set foldersFolder to (downloadsFolder & ":" & (item 4 of foldersList) as string)
    end if
    ---------------------------------
    try
      set allFolders to every folder in alias downloadsFolder
      set allFoldernames to the name of every folder in alias downloadsFolder
    on error
      set allFolders to {}
    end try
    
    repeat with i from 1 to (count allFolders)
      if item i of allFoldernames is not in foldersList then
        set end of finalFolders to (item i of allFolders)
      end if
    end repeat
    if (count finalFolders) is not equal to 0 then
      repeat with i from 1 to count finalFolders
        move (item i of finalFolders) to alias foldersFolder
      end repeat
    end if
  end if
  -------------------------------------------------------------------------------
  
  if (count allFiles) is not equal to 0 then
    --This section determines whether or not to include an "other" folder, so, again, if you have added or removed items from the foldersList above you must also add or remove items from here
    if extList1 is equal to {} then
      set useOtherFolder to true
      set otherFolder to (downloadsFolder & ":" & (item 1 of foldersList) as string)
    else if extList2 is equal to {} then
      set useOtherFolder to true
      set otherFolder to (downloadsFolder & ":" & (item 2 of foldersList) as string)
    else if extList3 is equal to {} then
      set useOtherFolder to true
      set otherFolder to (downloadsFolder & ":" & (item 3 of foldersList) as string)
    else if extList4 is equal to {} then
      set useOtherFolder to true
      set otherFolder to (downloadsFolder & ":" & (item 4 of foldersList) as string)
    end if
    ---------------------------------
    set myPath to (path to me as string)
    set myPath to reverse of (characters of myPath) as string
    set dlm to AppleScript's text item delimiters
    set AppleScript's text item delimiters to ":"
    set myName to (text item 1 of myPath)
    set AppleScript's text item delimiters to dlm
    set myName to reverse of (characters of myName) as string
    ---------------------------------
    repeat with i from 1 to (count allFiles)
      if (name of (item i of allFiles)) is not myName then
        set theFileInfo to info for ((item i of allFiles) as alias)
        set ext to name extension of theFileInfo as string
        --This section determines where to move the files, so, again, if you have added or removed items from the foldersList above you must also add or remove items from here
        if ext is in extList1 then
          move (item i of allFiles) to alias (downloadsFolder & ":" & (item 1 of foldersList) as string)
        else if ext is in extList2 then
          move (item i of allFiles) to alias (downloadsFolder & ":" & (item 2 of foldersList) as string)
        else if ext is in extList3 then
          move (item i of allFiles) to alias (downloadsFolder & ":" & (item 3 of foldersList) as string)
        else if ext is in extList4 then
          move (item i of allFiles) to alias (downloadsFolder & ":" & (item 4 of foldersList) as string)
        else if useOtherFolder is true then
          move (item i of allFiles) to alias otherFolder
        end if
      end if
    end repeat
  end if
end tell
I hope this helps someone else!

[robg adds: I tried this in 10.6, and it failed (error number -1700 from 0 to type class on the first set allFiles to... line. The author is anonymous, though, so I can't contact them for assistance. As the script seems useful, I thought I'd post it and ask for help -- AppleScript wizards, please let us know if you see a fix. I'll watch the comments and update the hint if a fix is found. Alternatively, if it works for you as-is, please post that as well; perhaps my system is unique in its failure.]
  Post a comment  •  Comments (6)  
  • Currently 2.44 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (9 votes cast)
 
[9,466 views] Email Article To a Friend View Printable Version
Create a change tracking file for Time Machine Backups System
One thing that's been bothering me lately about Time Machine is there are no labels or descriptions or any way really to tell what's been done to the system between backups. Really, what's the point of having 40 or so backups just for the last month (rather than maybe just 1 or 2 or even 4) if the only way to tell the difference between them is to look through each file??

So I sort of came up with a solution that I thought I'd share: I decided to just keep a text file somewhere in which I can log important (or not so important) system changes, such as system updates or important file deletions. I wanted to have it so I can go into Time Machine and use Quick Look on this text file to see the most recent change that I logged at the top of the file, followed by a history of changes. That way, if I'm looking for a particular change, I will know how much further back to go in my Time Machine history.)

So what I did was use Automator to create an app that will prompt for some text, then just insert it (with a date/time stamp) into a predefined text file. The first action in my Automator Workflow is 'Ask For Text,' then the second one is 'Run AppleScript' with the following code:
on run {input, parameters}
  set theFileReference to open for access ((path to home folder as string) & "Time Machine Labels.txt" as string) with write permission
  set txt to (read theFileReference for (get eof of theFileReference))
  write ((current date) as string) & " - " & input & return & txt to theFileReference starting at 0
  close access theFileReference
end run
[robg adds: I haven't tested this one.]
  Post a comment  •  Comments (4)  
  • Currently 2.43 / 5
  You rated: 4 / 5 (14 votes cast)
 
[6,000 views] Email Article To a Friend View Printable Version
Mute system volume based on scheduled events System
There are many events that I attend that require a laptop for notes (classes, meetings, lectures, etc.), but I do not always remember to mute system volume. It's certainly rude, but at worst embarrassing, if the computer starts making interrupting sounds during a presentation. So, I have iCal do the remembering for me:
  1. Open Script Editor and type in this single line: set volume 0.
  2. Save the script somewhere.
  3. Open iCal, select the desired "mute" event (or create a new one), and create a new alarm set to run the script you just saved.
Even with iCal closed, the reminder will execute the script before the event. I use this for all my work meetings, classes, and lectures where I use my laptop. I set the alarm for 15 minutes before the event, so even if I'm late, the second I open my laptop, the volume is muted.

[robg adds: An alternative version, gleaned from this previous hint, would be to use set volume with output muted instead of setting the volume to zero. By muting the volume, you can just press the Mute button on the keyboard when the event is over to restore your system to its previously-set volume level (instead of having to increase the volume from zero).]
  Post a comment  •  Comments (12)  
  • Currently 1.63 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (8 votes cast)
 
[7,796 views] Email Article To a Friend View Printable Version