Help - Search - Members - Calendar
Full Version: Applescript coding
Neowin Forums > Macintosh Customization & Support > Mac Software Discussion & Help
coolant
I've started to work with Applescript and IRC and trying to create a bot.

I am wondering if anybody knows how to read/write from a MySQL DB. I found http://www.yvs.eu.com/otherproducts.html which seems interesting, but have not played with it that much. Just wanted to know if anybody had any ideas.

Thanks smile.gif

I have...

CODE
property mysql : load script (file "osx:Users:coolant:mysql")

on pubmsg(con, source, sourcehost, target, thestring)
    
    if thestring is "!test" then
 
 tell application "Snak-bot"
     set test to mysql's GetmySQLVersion()
     type "/msg " & source & "" & test & ""
 end tell
 
 
    end if
    
    return false
end pubmsg
coolant
*bump* ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.