Jun 16, '04 11:59:00AM • Contributed by: dtannenbaum
Whenever I want to use the Address Book I double click on this rather than on the Address Book itself. This means that when I make changes in Address Book as one user, the changes will show up for the other users, so long as I run this script. You will of course need a slightly modified version of the script for each user account. It's quick, it's dirty, but it works.
- Open any text editor that can create plain text files and create a new document.
- On the first line type the following, substituting for user1 and user2, where user2 is the current user and user1 is the last user to make changes the Address Book. Note that this is one long line; replace the line break below with a space.
This will copy the files from the last user to modify the address book to the current user.sudo cp -R /Users/user1/Library/Application Support/AddressBook/* /Users/user2/Library/Application Support/AddressBook - On the second line, type:
This will change the owner of these files to the current user so that the files can be modified.sudo chown -R user2: /Users/user2/Library/Application Support/AddressBook/* - On the next two lines, type:
This opens Address Book and exits the script.open /Applications/Address Book.app exit - Save the file. Open a new window in Terminal and type chmod 770 (notice the trailing space!). Don't press Return yet. Instead, drag the file you've just saved over the Terminal window. Its path will print out automatically. Now you can hit Return. This step makes the file executable for you and others in your group.
