Feature #43

Give the geeklets a "visible" property

Added by Philippe Martin 416 days ago. Updated 371 days ago.

Status:Closed Start:
Priority:High Due date:
Assigned to:Yann BIZEUL % Done:

0%

Category:GeekTool Helper
Target version:3.0 RC1
Resolution:

fixed


Description

It would allow things like this:

tell application "GeekTool" 
    if visible of geeklet 1 is true then
        set visible of geeklet 2 to false
        set visible of geeklet 3 to true
    end if
end tell

History

Updated by Yann BIZEUL 379 days ago

You can now open and close geeklet from applescript. Is that ok ?

Updated by Philippe Martin 379 days ago

Yeah, that's works fine, thank you! But is there a way to determine if a geeklet is currently open or not? I suggested a property because in addition to toggling it, you can also check its state.

Updated by Philippe Martin 379 days ago

Found a bug: when you close a geeklet that way, it keeps refreshing (for example a shell geeklet keeps running its command even though the result isn't displayed).

Also, on second thought, can't it be confusing that the AppleScript "close" command does a different thing than the close button? I mean people seeing "close" in the AS dictionary might think that would actually delete a geeklet, like the close button.

Updated by Yann BIZEUL 379 days ago

Maybe you're right, I'll change it to show and hide

Updated by Yann BIZEUL 379 days ago

  • Resolution set to fixed

Also available in: Atom PDF