Jump to content

sesweitzer

Member
  • Content Count

    4
  • Joined

  • Last visited

  1. Thanks deanishe! I just bought you a beer. I didn't totally understand your instructions because I've never created a workflow but you gave me enough and I got it working. Thanks for for the help and for getting me to the next level of using Alfred. It seems so simple now.
  2. Greetings, I'm trying to find an Alfred 3 workflow that will allow me to close all the tabs to the left or to the right of the selected tab in Safari 9.1.2. I was using a Workflow called BrowserTabs but it seems to have quite working. Thanks, Steve
  3. This is the link http://www.alfredforum.com/topic/2580-browsertabs-chromesafari-close-tabs-to-the-leftright-switch-between-tabs-with-keyboard/ The first time I ran it with Safari open I got a window asking where Chrome was located. I don't have Chrome on this Mac. This is the AppleScript on alfred_script(q) -- find front app tell application "System Events" set frontApp to name of the first process whose frontmost is true end tell if frontApp is "Safari" then if q is "tab1" then tell first window of application "Safari" to set current tab to tab 1 else if q is "tab2" then tell first window of application "Safari" to set current tab to tab 2 else if q is "tab3" then tell first window of application "Safari" to set current tab to tab 3 else if q is "tab4" then tell first window of application "Safari" to set current tab to tab 4 else if q is "tab5" then tell first window of application "Safari" to set current tab to tab 5 else if q is "tab6" then tell first window of application "Safari" to set current tab to tab 6 else if q is "tab7" then tell first window of application "Safari" to set current tab to tab 7 else if q is "tab8" then tell first window of application "Safari" to set current tab to tab 8 else if q is "tab9" then tell first window of application "Safari" to set current tab to tab 9 end if else if frontApp is "Google Chrome" then if q is "tab1" then tell application "Google Chrome" to set active tab index of first window to 1 else if q is "tab2" then tell application "Google Chrome" to set active tab index of first window to 2 else if q is "tab3" then tell application "Google Chrome" to set active tab index of first window to 3 else if q is "tab4" then tell application "Google Chrome" to set active tab index of first window to 4 else if q is "tab5" then tell application "Google Chrome" to set active tab index of first window to 5 else if q is "tab6" then tell application "Google Chrome" to set active tab index of first window to 6 else if q is "tab7" then tell application "Google Chrome" to set active tab index of first window to 7 else if q is "tab8" then tell application "Google Chrome" to set active tab index of first window to 8 else if q is "tab9" then tell application "Google Chrome" to set active tab index of first window to 9 end if end if end alfred_script
  4. Greetings, I have a new Mac and I'm trying to use a workflow with Alfred 3 called Browsertabs that, among other things, closes all Safari tabs to the left or to the right. This workflow works fine on two of my Macs (all running El Capitan). I Exported it from a working version of Alfred 3 and then Imported it to the new Mac by double clicking on it. After I add a shortcut key combination, I get this error: Starting debug for 'BrowserTabs' [2016-08-14 11:45:25][trigger.hotkey] Processing output of 'action.applescript' with arg 'closeRightTabs' [2016-08-14 11:45:25][ERROR: action.applescript] { NSAppleScriptErrorBriefMessage = "Expected end of line, etc. but found property."; NSAppleScriptErrorMessage = "Expected end of line, etc. but found property."; NSAppleScriptErrorNumber = "-2741"; NSAppleScriptErrorRange = "NSRange: {2239, 3}"; Any suggestion? Steve
×
×
  • Create New...