Search the Community
Showing results for tags 'menubar'.
Found 4 results
Hi, I've created a basic workflow that searches the system's menu bar. After having used Sublime Text's command palette I wanted to have a similar system-wide functionality. EDIT: For people that haven't worked with Sublime Text's command palette: the command palette allows you to fuzzy search the entire application menu by keyboard. This saves both time on hunting down the right menu and saves you having to remember all sorts of keyboard shortcuts. For a brief introduction on Sublime Text's command palette see https://tutsplus.com/lesson/the-command-palette/ EDIT: Better use ctwise's "2.0" workflow http://www.alfredforum.com/topic/1993-menu-search/ [old download is still available at http://dl.dropbox.com/u/6259900/Menu%20bar%20search.alfredworkflow] The current workflow does not do any fuzzy searching and every keystroke executes the entire script again. My preferred fix to this would be to have a script input that is only executed once, and have Alfred do the subsequent fuzzy matching based on the initial result. Jeroen van der Neut @jvdneut
It is my first Alfred Worklfow - especially first bash I've ever wrote for a reason deserves to share with people. As you know, BitBar is a cool plugin which helps you to manage your Menubar. At last 3 weeks - I was crazy busy by dealing with tens of different things in an hour. That is why I create this script to manipulate BitBar Plugin text by using Alfred Workflow. Installation is not easy but I'll help you: Install BitBar first. Create a directory under your Documents/BitBar-Plugins, move .sh file into this (~/Documents/Bitbar-Plugins/write-into-menubar-bitbar-plugin.1s.sh) Give execution permission to sh file by running this command in terminal: chmod +x ~/Documents/Bitbar-Plugins/write-into-menubar-bitbar-plugin.1s.sh Alfred Workflow: https://github.com/yigitkonur/write-into-menubar/raw/master/write-into-menubar-alfred-workflow.alfredworkflow BitBar Plugin: https://github.com/yigitkonur/write-into-menubar/blob/master/write-into-menubar-bitbar-plugin.1s.sh ReadMe: https://github.com/yigitkonur/write-into-menubar/blob/master/readme.md Github: https://github.com/yigitkonur/write-into-menubar/ Download All Plugins: https://cloudup.com/csuF0DX90nf Packal URL: http://www.packal.org/workflow/write-menubar-bitbar-extension If you face with any problem, mention me on Twitter / @yigitkonur - create issue on Github - reply by here.
Hey I'm trying to make an AppleScript to be run from Alfred, that should quickly set a specified speaker as audio output device if it is currently connected (in example below "My Awesome Speaker"), and otherwise don't do anything. I have gotten most of the functionality down (toggling between speaker/internal speaker), but I'm having a problem in the instance that the speaker isn't connected. When this is the case, the script has already clicked on the audioMenu, making the dropdown be there until a mouse click. I thought I could make it go away by branching with an "if else" and then if the speaker isn't connected, then just clicking the audioMenu again (because I've seen similar behaviour (with succes) for other menu bar scripts). But if I instead do this, the audio dropdown will still be staying until a click has been made, and then the script clicks the audio icon again making it doubly annoying. on alfred_script(q) set speakerName to "My Awesome Speaker" set internalSpeakers to "Internal Speakers" activate application "SystemUIServer" tell application "System Events" tell process "SystemUIServer" -- Working CONNECT Script. Goes through the following: -- Clicks on Audio Menu (OSX Top Menu Bar) -- Clicks your speaker if not connected -- Else if connected, then disconnects by clicking Internal Speakers set audioMenu to menu bar item 4 of menu bar 1 tell audioMenu click if exists menu item speakerName of menu 1 then set speakerMenuItem to menu item speakerName of menu 1 if value of attribute "AXMenuItemMarkChar" of speakerMenuItem is "✓" then click menu item internalSpeakers of menu 1 return "Disconnecting from " & speakerName & "..." else click speakerMenuItem return "Connecting to " & speakerName & "..." end if else -- Doesn't work for now. Just clicks it again after you deselect menu, making it double annoying --click audioMenu return "Doesn't look like you're connected to " & speakerName & "..." end if end tell end tell end tell end alfred_script How can I fix this, so the dropdown actually goes away if speaker is not connected?
As it is currently I'm hiding the Alfred menubar icon with Bartender mainly because it adds very little. What I would like though is the possibility to use the icon to select and paste items from the clipboard as an alternative to bringing up the clipboard entry list through the hotkey combination. Have a look at Collective for example. The usual functionality can be relegated to context-clicking the Alfred icon as far as I am concerned.