The other side

of ScottyP is made of 1s and 0s

Sunday, July 10, 2005

Moving...

I have moved this blog to http://scottyp.blogsome.com/ Check it out there for all the new entries (hah! It's only a few, since I've been so busy!) you have been missing for the last few months!

Wednesday, May 18, 2005

Contact Metadata: The big WIN = Spotlight accessibility!

In my first post about metadata in Address Book, I think I forgot to mention that the real benefit in adding tags to your contacts individually is that they can then be indexed using spotlight on those tags. You don't need to tag your contacts to be able to put them in groups together. You can just use regular Groups and manually drag the contacts you want into them, instead of using smart groups, but if you put tags in the Note section, you might as well use Smart Groups, and then you also get the power of Spotlight knowing about that information as well!

Address Book import contacts??

So today I just wanted to add some contacts to my Address Book. I had a list in an excel document with all their contact info that was sent to me, so I figured that I could simply export the Excel spreadsheet to CSV (comma separated values) or a tab delimited text file, and then Address Book's import text file feature could handle it from there.

So I exported to a CSV and TXT file with no problem from Excel. Then I pulled up the import in Address Book and it really nicely let me match up the fields in Address Book with those in the text file using the headers in the first row and ignore the first record. I could even click forward and backwards through the contacts I was about to import. It seemed nice and dandy until I went to click "OK" and NOTHING HAPPENED! It just sat there like it had no idea I had just clicked "OK"!

Why is there an import feature if it doesn't work??? How hard can it be to import a text file? I could write a program to do this! In 9th grade!

Apparently I'm not the only one to have some problems with Address Book's import "feature". Paul Thurrott experienced similar difficulties and mentioned them in his very thorough and good review of Tiger

Apple, I love Tiger and the Update to the iApps, but please, please give me a reason to stick around and use them instead of running off to software that actually does what it claims to do, and does what I need it to do!

It would be pretty sad if I had to figure out and write an apple script or Automator workflow to simply import some contacts (something that Address should definitely be able to do!)

Anyone else had bad luck importing into Address Book? Let me know about it.

Tuesday, May 17, 2005

Fixing Address Book's lack of good metadata editing (adding tags easily)

With such power in Spotlight to search metadata, why wouldn't Apple not allow easy entry of metadata into contacts? You can easily add a tag like [Family] to the Note section one by one to all your family members contact cards, but why not be able to select them all and do it at once. Since I know that Address Book is scriptable and I wanted to play around with Automator I decided that this was a suitable problem worth attacking.

So I go into Automator and find out that none of the Automator actions for Address Book let you EDIT contact info, only search, filter, and show contacts. SO I had to venture into another world of scripting, one slightly more complicated: AppleScript.

After a little help from someone on the MacScripters forums I got a working piece of code. Here it is; it works just like it should! Feel free to copy this and use it yourself!

--*************************
-- Multiple Contact Tagger
-- How to use this script: Select multiple contacts in Address Book, then run this script (via the script menu or Quicksilver are the best ways), and it will let you enter the tag (ex: [Family] ) you want and then apply it to the selected contacts by appending it into the Note section of each contact. You may then want to create Smart Groups that search for that tag in its criteria, and then Smart Folders in Mail that use the Smart Groups in its criteria

-- Author: Scott Paulis
-- Last Modified: May 17, 2005

tell application "Address Book"
set thePeople to selection
display dialog "What tag would you like to apply to the selected contacts?" buttons {"Cancel", "Apply"} default button "Apply" default answer "[tag]"
set dialogInfo to result

set selectedButton to button returned of dialogInfo
set tagString to text returned of dialogInfo

if selectedButton is "Apply" then
repeat with aPerson in thePeople
set currentNote to the note of aPerson
if currentNote is missing value then set currentNote to ""
set newNote to currentNote & tagString
set note of aPerson to newNote
end repeat
end if
end tell
--**************************

As Tony would say, Tiger is grrrrrrrrreat!

I got my copy of Mac OS X 10.4 Tiger this week and I very pleased, overall. But there are a few gripes I have, they mostly have to do with Address Book and Mail.

I decided since I was upgrading to Tiger, I might as well start using the upgraded versions of Apple's Mail and Address Book applications, especially since they are free and I don't have to pay to upgrade them (unlike Microsoft's Entourage)

I was able to easily enough, using Mail's built-in import functionalities, import my mail from Entourage. I also drag-and-drop imported all my contacts to Address Book fairly painlessly, although I did lose the categories attached to them somehow (and hadn't backed them up first ... idiot!)

My main complaint about Mail/Address Book is it's lack of categories support. I'll touch on this in my next post.