Applescript coding


Recommended Posts

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 :)

I have...

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

Edited by coolant
Link to comment
https://www.neowin.net/forum/topic/224651-applescript-coding/
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.