Script sayDropboxStatus ()
var
int iTrayItems,
int iCounter,
int iMouse,
string sDropboxTip,
string sDropboxVersion
let iTrayItems = SysTrayGetItemCount ()
while iCounter < iTrayItems
let iCounter=ICounter+1
let sDropboxTip = SysTrayGetItemToolTip (iCounter)
if stringLeft(sDropboxTip,7) == "dropbox" then
let iMouse = iCounter
let iCounter = 12345
endIf
endwhile

if iCounter != 12345 then
say("Dropbox not found",0)
return
endIf
if IsSameScript() == 1 then
sayUsingVoice(vctx_message,"Opening your Dropbox",ot_no_disable)

saveCursor()
SysTrayMoveToItem (iMouse)
LeftMouseButton ()
leftMouseButton()
restoreCursor()
return
endIf

let sDropboxTip = stringSegment(sDropboxTip,"\n",2)
sayUsingVoice(vctx_message,sDropboxTip,ot_no_disable)
EndScript