Variable as a Tool Tip

Is it possible to use a variable as the contents of a tool tip using applescript? Is that only possible w/cocoa? I’d just like to show a directory path when the mouse hovers over a button.

:confused: aron

It’s totally possible. Just have your UI items named. Not sure how you want to implement it, maybe you want to have a global like “toolTip” to be available script-wide. I made a quick project and tested it, no global. Just a button on a window.

on clicked theObject
set theTip to “tooltip”
set tool tip of theObject to theTip
end clicked

Cool! Thank you for helping me out.