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


Click here to return to the '10.3: A script to copy iChat buddy icons to Address Book' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: A script to copy iChat buddy icons to Address Book
Authored by: k0fcc on Nov 10, '03 03:12:49PM
Ok, for those of you who don't like to guess, here's the updated script:

-- IChat to Address Book
-- Copies the iChat buddy icon of your contact to the address book
--
-- Original code by Antoni Chan
-- Tweak by jstrope of Mac OS X Hnts
--
-- Comments by Joey Stanford
tell application "iChat"
	set modifiedList to {}
	set modifiedListRef to a reference to modifiedList
	repeat with curAccount from 1 to number of items in accounts
		set nameVar to the name of account curAccount
		if exists image of account nameVar then
			set theImage to the image of account nameVar
			tell application "Address Book"
				if person nameVar exists then
					set image of person nameVar to theImage
					copy nameVar to end of modifiedListRef
				end if
			end tell
		end if
	end repeat
	-- output the list of modified entries
	set AppleScript's text item delimiters to {", "}
	display dialog "The following entries were modified: " & modifiedList
end tell


[ Reply to This | # ]
10.3: A script to copy iChat buddy icons to Address Book
Authored by: phillipc on Nov 17, '03 09:24:19PM

Any idea why I would get an NScannotCreateScriptCommand error?

---
PhillipC



[ Reply to This | # ]