Results 1 to 2 of 2
  1. #1
    Applescript to import buddies from file

    Member Since
    Aug 14, 2007
    Location
    Upper Michigan
    Posts
    29
    Specs:
    Macbook Pro 2.2GHz 15.4" 2GB RAM
    Applescript to import buddies from file
    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
    -----------------------

  2. #2
    Applescript to import buddies from file

    Member Since
    Aug 14, 2007
    Location
    Upper Michigan
    Posts
    29
    Specs:
    Macbook Pro 2.2GHz 15.4" 2GB RAM
    Anybody out there that can help??
    Apple Fan boy
    -----------------------

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. run applescript automatically on file and close
    By humanengr in forum OS X - Operating System
    Replies: 0
    Last Post: 06-10-2012, 05:11 PM
  2. Call a java script file from applescript
    By narayanaraj in forum OS X - Operating System
    Replies: 0
    Last Post: 09-21-2011, 11:13 AM
  3. applescript read from file...HELP!!!!! im desperate
    By toolesag in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 05-04-2011, 06:10 PM
  4. applescript - delete file from root
    By Jiggy in forum OS X - Operating System
    Replies: 0
    Last Post: 04-21-2011, 09:52 AM
  5. Applescript help: Find file, copy file
    By joseph2117 in forum OS X - Apps and Games
    Replies: 0
    Last Post: 09-19-2010, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •