Topic: Removing menubar icon

Hi,

It is possible to run FastScripts in background (like Spark) and hide/disable the menubar icon as I've already assigned keyboard shortcuts to the applescripts I use.

Thanks in advance.

Re: Removing menubar icon

Hi - it's not possible, because the menu bar icon is currently the only way to interact with FastScripts. I think if I was going to offer a mode where it could be disabled, I'd need to offer a preference pane or something so that users could "get back in" to turn it back on or adjust settings.

I'll consider something like this as a possible future update.

Re: Removing menubar icon

Yes please, that'd be great. I only have a couple of scripts and I have shortcuts assigned to them, so the menubar icon is pretty much useless to (users like) me.

Thanks

Re: Removing menubar icon

+1 on this feature. I only use FastScripts for keyboard shortcuts, so this would help keep the menu bar tidy.

Daniel, instead of a preference pane (which I expect would be a lot of extra work on your part), perhaps you could make it so that starting FastScripts when it's already running opens the preferences? I've seen another app do this, though I can't recall which one. Seems like this could be a lot easier to implement.

It's certainly a bit non-obvious, but I think acceptable.

Re: Removing menubar icon

Huh - I had this vague memory today that I had implemented a "secret scripting command" for removing the menu.  I guess I never did it, but maybe that's what I'll end up compromising with.

Re: Removing menubar icon

Having this feature would be useful for me also, any news on when it might be seen?

Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

Re: Removing menubar icon

It turns out I *DID* implement a secret scripting command for this.

Run this script to hide the menu icon:

tell application "FastScripts"
    set visible of fastscripts menu icon to false
end tell

Re: Removing menubar icon

Awesome, thank-you!  Now to replace "FastScripts" in my login items with that script :-)

Last edited by PhillS (August 17, 2009 11:39:26 AM)

Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

Re: Removing menubar icon

Menu icon toggle:

tell application "FastScripts"
    get visible of fastscripts menu icon
    if result is true then
        set visible of fastscripts menu icon to false
    else
        set visible of fastscripts menu icon to true
    end if
end tell

Only problem is that the current window loses focus when restoring the icon (it's fine when you make it disappear). Any way round that?

Re: Removing menubar icon

Hi - I'm not sure what's causing this, but the quickest and surest workaround is to wrap the script in commands that explicitly save and restore the frontmost application:

set savePath to POSIX path of (path to frontmost application)

tell application "FastScripts"
    get visible of fastscripts menu icon
    if result is true then
        set visible of fastscripts menu icon to false
    else
        set visible of fastscripts menu icon to true
    end if
end tell

tell application savePath to activate

Re: Removing menubar icon

That works if I run it from within Applescript, but not when it's triggered from the keyboard …

Re: Removing menubar icon

Hmm - sorry, I don't have any other suggestions. I'll add this to my bug list. However, the "hide/show menubar icon" feature is sort of a secret feature and not intended to be a fully supported mechanism.  The main purpose is to let people turn it off at all - not really intended to be something that toggles off and on all the time.

Re: Removing menubar icon

Yeah, I'm actually happy to have it showing the whole time. Just playing around with it : )

Re: Removing menubar icon

Oh, good smile I appreciate the bug report. I'm glad it's not causing you particular grief.