Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Applescript to import buddies from file
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mentch" data-source="post: 724572" data-attributes="member: 36226"><p>So im trying to figure out a way to import a text file of a list of buddys into Adium.</p><p>The text file is in this format:</p><p></p><p>[code]</p><p>Buddy {</p><p>list {</p><p>"Group Name" {</p><p>ScreenName</p><p>ScreenName</p><p>ScreenName</p><p>}</p><p>"Group Name" {</p><p>ScreenName</p><p>ScreenName</p><p>}</p><p>}</p><p>}</p><p>[/code]</p><p></p><p>So far all I can do is loop through the file and display each line in a prompt:</p><p></p><p>[code]tell application "Finder"</p><p> set Names to paragraphs of (read (choose file with prompt "Choose File"))</p><p> repeat with nextLine in Names</p><p> if length of nextLine is greater than 0 then</p><p> display dialog nextLine</p><p> end if</p><p> end repeat</p><p>end tell[/code]</p><p></p><p>Any help would be appreciated.</p></blockquote><p></p>
[QUOTE="Mentch, post: 724572, member: 36226"] 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 } } } [/code] 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[/code] Any help would be appreciated. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Applescript to import buddies from file
Top