Jump to content

RodgerWW

Member
  • Posts

    378
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by RodgerWW

  1. Open up Alfred, click on the 'Features' button at the top, then select 'Default Results' in the left column.

    On the right side you see a 'Search Scope' list ... just drag the folders/drives you want Alfred to include in there.

  2. Make your custom search a fallback search:

     

    1: Open Alfred Prefs

    2: Click on 'Features' button, then on 'Default Results' in the left pane.

    3: At the bottom on the right, click on the 'Set fallback results' button.

    4: In the panel that pops down click the '+' button and select the newly created 'Custom Search' you made.

    5: Optionally, drag your custom search to the top of the list window … Google is on top by default.

  3. Under Mavericks (10.9.3) with Alfred2 (2.3) I can assign any workflow hotkey to be F6.

    Make SURE that in System Preferences/Keyboard/Shortcuts, there is nothing taking up the F6 ... otherwise, Alfred won't be able to use it.

    Also make SURE any other apps you might have running do not use that key binding.

     

    Short of that ... no clue.

  4. I encountered a couple of errors on the last version:

     

    On the icon assignment there's an extra else:

    ...
    elif [ $SWVER == 10.8 ]; then
    OSICON=MountainLion.png
    else # <=== this one
    elif [ $SWVER == 10.9 ]; then
    OSICON=Mavericks.png
    else
    OSICON=Yosemite.png
    fi
    
    

    This breaks the workflow.

     

     

    On the other hand, I'm getting the following error, the workflow seems to work despite this:

    [ERROR: alfred.workflow.input.scriptfilter] Code 0: cat: SPDisplaysDataType: No such file or directory
    cat: SPDisplaysDataType: No such file or directory
    /bin/bash: line 119: [: ==: unary operator expected
    /bin/bash: line 123: [: ==: unary operator expected
    /bin/bash: line 127: [: ==: unary operator expected
    

    Hope it helps. Keep up the nice work.

     

    Ooops, I upped the working workflow ... it is now corrected for the ICON.

     

    The 'SPDisplaysDataType' error is technically an error, yes, but it just means you do not have the total number of graphics cards that the workflow supports.  I get this error too (if I look for it) on my iMac, because it has but one video card.

  5. Okay, here's what I did. I pasted the above into the window called "Run NSAppleScript" so that it now looks like this:

     

    The only thing is, it seems Firefox must be the active application when I use my keyword (in this case, "intj") for it to work (e.g. I can't be in an iTunes Window, then toggle Alfred, then type in my keyword). Can it be modified to account for this?

     

    Also, you'll notice I changed the url . . . that is the site I'd like to use for this. I was wondering if there'd be any way to modify the applescript so that the "user name" and "password" fields are filled and the "Remember Me?" box is ticked and the "Login" button is pressed. Thank you.

     

    REMOVE the "--" in front of 'tell application "Firefox" to activate'  that is an applescript comment delimiter, therefore, the command AFTER the "--" is ignored: This is why Firefox was not activating.

     

    Question: If you are Private browsing, is the "remember me" really going to be saved to the HD? I thought the idea of Private Browsing was that no cookies would be saved to the HD?

     

    One way I think you could add the login and password would be to add more keystrokes.

    For instance: if you hit TAB on your keyboard, does the focus go to the User Name Field for you? Then, another TAB and it moves to Password...etc.

     

    So: adding the following after the 'keystroke "http://intjforum.com/" & return -- Paste URL and hit ENTER':

    delay 2 -- Adds a delay after the URL is entered to allow for loading the site
    keystroke tab -- Selects the User Name field
    keystroke "yourusernamehere"
    keystroke tab & return -- Selects the Password field
    keystroke "yourpasswordhere" & enter

    KEEP IN MIND: your password and login will be clearly obtainable if anyone looks through your Alfred workflows and happens upon this script.

     

    About the new private TAB, I'm not entirely sure how to do that in an already active window ... perhaps someone else can chime in on that to modify the applescript.

  6. You will have to use system events to type keystrokes for you.

     

    Here's the applescript:

    tell application "Firefox" to activate
    
    tell application "System Events"
        
        keystroke "p" using {shift down, command down} -- Open New Private Window
        keystroke "l" using {command down} -- Select the URL field
        
        keystroke "http://www.hotmail.com/" & return -- Paste URL and hit ENTER
        
    end tell

    Just change the hotmail URL within the quotes to whatever your URL is.

  7. I came across this post and would like to do the same thing, but always have the file I've selected in Pathfinder sent to Photoshop. My default for images is ViewIt and I don't want to change that. If, however, an image needs some retouching or work, I'd like to automatically send it to Photoshop with a keystroke combination.

     

    I understand the Cmd+Opt+\ function, but that requires me to choose Photoshop as the application each time. Is there a way that I can use Open With and always have the image go to Photoshop?

     

    Unfortunately, I'm not a programmer and I'm not sure how to pull this off in Alfred.

     

    In advance, thanks to anyone who can help me with this.

     

    If I 'get' what you are asking: this is simple enough:

     

    1: Create a new workflow in Alfred by clicking on the "+" at the bottom of the workflows pane.

    2: Select "Blank Workflow"

    3: At the top right click on the "+" and select "Actions / Open file"

    4: Double click on the "Open File" box just created and drag Photoshop into the RIGHT drop area 'the default application', then save.

    5: At the top right click on the "+" and select "Triggers / Hotkey"

    6: Double click on the "Hotkey" box just created and set your desired hotkey, and under 'Argument' select 'Selection in OS X' then save.

    7: Then connect the Hotkey Box to the Open File box.

     

    Now, any file you have selected in Finder will be sent to Photoshop by hitting your hotkey combo.

×
×
  • Create New...