Applescript to import buddies from file

Joined
Aug 14, 2007
Messages
29
Reaction score
0
Points
1
Location
Upper Michigan
Your Mac's Specs
Macbook Pro 2.2GHz 15.4" 2GB RAM
So im trying to figure out a way to import a text file of a list of buddys into Adium.
The text file is in this format:

Code:
Buddy {
list {
"Group Name" {
ScreenName
ScreenName
ScreenName
}
"Group Name" {
ScreenName
ScreenName
}
}
}

So far all I can do is loop through the file and display each line in a prompt:

Code:
tell application "Finder"
	set Names to paragraphs of (read (choose file with prompt "Choose File"))
	repeat with nextLine in Names
		if length of nextLine is greater than 0 then
			display dialog nextLine
		end if
	end repeat
end tell

Any help would be appreciated.
 
OP
M
Joined
Aug 14, 2007
Messages
29
Reaction score
0
Points
1
Location
Upper Michigan
Your Mac's Specs
Macbook Pro 2.2GHz 15.4" 2GB RAM
Anybody out there that can help??
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top