<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Messages</title><link>https://sourceforge.net/p/encee/wiki/Messages/</link><description>Recent changes to Messages</description><atom:link href="https://sourceforge.net/p/encee/wiki/Messages/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 09 Aug 2012 08:01:07 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/encee/wiki/Messages/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Messages modified by PHPdev32</title><link>https://sourceforge.net/p/encee/wiki/Messages/</link><description>Sample AppleScript for Messages
-----
~~~~~~~
on resize(dly)
	delay dly
	tell application "Messages" to set zoomed of window "Buddies" to true
end resize
on notify(notes)
	tell application "EnCee" to notify ttle of notes with message desc of notes imitate "Messages"
end notify
using terms from application "Messages"
	on setMsg(bStatus)
		if (bStatus is offline) then return "disconnected"
		if (bStatus is available) then return "connected"
		if (bStatus is away) then return "went away"
		if (bStatus is idle) then return "became idle"
		return "no"
	end setMsg
	on buddy became available bddy
		if application "Messages" is not frontmost then tell application "Messages" to my notify({desc:my setMsg(status of bddy), ttle:full name of bddy, icon:image of bddy})
		resize(1)
	end buddy became available
	on buddy became unavailable bddy
		if application "Messages" is not frontmost then tell application "Messages" to my notify({desc:my setMsg(status of bddy), ttle:full name of bddy, icon:image of bddy})
		resize(2.5)
	end buddy became unavailable
	on completed file transfer trnsfr
		if (application "Messages" is frontmost) or (transfer status of trnsfr is not finished) then return
		if direction of trnsfr is incoming then
			set dir to "Sent"
		else
			set dir to "Received"
		end if
		tell application "Messages" to my notify({desc:dir &amp; " " &amp; (file of trnsfer as string), ttle:full name of bddy, icon:image of buddy of trnsfr})
	end completed file transfer
end using terms from
~~~~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PHPdev32</dc:creator><pubDate>Thu, 09 Aug 2012 08:01:07 -0000</pubDate><guid>https://sourceforge.net83268b4dce455024bf45946ddce8cafb88aa7c8c</guid></item></channel></rss>