New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Applescript to import buddies from file


Post Reply New Thread Subscribe

 
Thread Tools
Mentch

 
Member Since: Aug 14, 2007
Location: Upper Michigan
Posts: 29
Mentch is on a distinguished road
Mac Specs: Macbook Pro 2.2GHz 15.4" 2GB RAM

Mentch is offline
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.

Apple Fan boy
-----------------------
QUOTE Thanks
Mentch

 
Member Since: Aug 14, 2007
Location: Upper Michigan
Posts: 29
Mentch is on a distinguished road
Mac Specs: Macbook Pro 2.2GHz 15.4" 2GB RAM

Mentch is offline
Anybody out there that can help??

Apple Fan boy
-----------------------
QUOTE Thanks

Post Reply New Thread Subscribe


« gmail widget | Function keys »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
What is up with Quicken 2007 Mac ImBatman OS X - Apps and Games 3 03-30-2012 12:03 PM
File copying frustrations - help? djmitch Switcher Hangout 5 06-27-2005 02:23 AM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 02:23 PM
Can't import .MPG file into iDVD 4 thendis Movies and Video 2 10-15-2004 02:23 AM
Import Outlook altyson Switcher Hangout 0 05-13-2004 05:47 PM

All times are GMT -4. The time now is 01:11 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?