Fixing Time Machine Skippage

Time Machine has been skipping some folders on my work machine, and every simple trick I tried failed to make it back them up. Finally, I dug deep and found the problem: the OS X Extended Attributes for those folders contained this attribute:com.apple.metadata:com_apple_backup_excludeItem
The problem here is that these folders are part of an Xcode project, and it seems that Xcode is tagging them for exclusion. Not nice.
The “how to remove this” instructions came from stackoverflow.com.
The salient bit from that article is this:

Use the xattr command. You can inspect the extended attributes:

$ xattr s.7z
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine

and use the -d option to delete one extended attribute:

$ xattr -d com.apple.quarantine s.7z
$ xattr s.7z
com.apple.metadata:kMDItemWhereFroms

Fixing Time Machine Skippage

Time Machine has been skipping some folders, and every simple trick I tried failed to make it back them up. Finally, I dug deep and found the problem: the OS X Extended Attributes for those folders contained this attribute: com.apple.metadata:com_apple_backup_excludeItem

The “how to remove this” instructions came from stackoverflow.com.

Setting up a WordPress Site

So, this is my first foray into WordPress. Late to the party, I guess.all-beat-up

Fall 2012 has been a rough one for Autograph Systems. Along with the continual sluggish economy, the long-threatened ‘purge’ of small Apple Authorized Resellers finally happened on November 1. Then “our guy” lost the presidential election, so it appears we’re going to bump along for another four years at least.

But we press on, and we do still have some Apple products in stock which we would be happy to move off the shelves before they become obsolete. Call us and we’ll give you a deal, if we can.

AppleScript Text Sort via Unix

Sometimes you need to sort a list before presenting it to the user via “choose from list.” This is particularly important when working with Helix RADE, as the list of icons is sorted by selection order, not by name.

While various methods have been put forward, none rival the speed of the Unix ‘sort’ command. The following code is modified from a hint found at http://hints.macworld.com/article.php?story=20040513173003941.

on sortItems(itemList)
      -- modded from http://hints.macworld.com/article.php?story=20040513173003941
   local listString, newString, newList
   set oldDelims to AppleScript's text item delimiters
   set AppleScript's text item delimiters to {ASCII character 10} -- always a linefeed
   set listString to (itemList as string)
   set newString to do shell script "echo " & ¬
      quoted form of listString & " | sort -g" -- add -r for reverse
   set newList to (paragraphs of newString)
   set AppleScript's text item delimiters to oldDelims
   return newList
end sortItems