Jump to content

lucasoldaini

Member
  • Posts

    14
  • Joined

  • Last visited

Posts posted by lucasoldaini

  1. ops, it looks like that the preference panel for the 13" display is structured differently (less UI elements with a different hierarchy, I guess)

     

    not having a 13" myself, it's kinda hard for me to fix it. The best thing I can do is suggest you to download Accessibility Inspector (it comes with Xcode, see here https://developer.apple.com/library/mac/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXTesting/OSXAXTestingApps.html for description on how to use it) to figure out the hierarchy of the UI. :(

  2.  

    I am sorry to say that this is not working for me on a new MacBook Pro 13" Late 2013 with OS X Mavericks. Console shows:

     

    11/2/13 11:17:54.393 PM Alfred 2[19631]: [ERROR] AppleScript Error: {
        NSAppleScriptErrorAppName = "System Events";
        NSAppleScriptErrorBriefMessage = "Can\U2019t get radio group 1 of group 1 of tab group 1 of window \"Built-in Retina Display\" of process \"System Preferences\". Invalid index.";
        NSAppleScriptErrorMessage = "System Events got an error: Can\U2019t get radio group 1 of group 1 of tab group 1 of window \"Built-in Retina Display\" of process \"System Preferences\". Invalid index.";
        NSAppleScriptErrorNumber = "-1719";
        NSAppleScriptErrorRange = "NSRange: {593, 71}";
    }
     
    - David

     

     

    David, 

     

    can you share a screenshot of your display tab in system preferences? I fear it might be different that the one on the 15". 

     

    Luca

  3. Hi everybody! 
     
    Mavericks broke the previous workflow I was using to quickly change resolution on my retina MacBook Pro (15", doesn't work on 13"). I thought that you might enjoy the new one I wrote!
     
    2013-11-02%20at%2011.00%20AM%202x.png

     
    Usage:
     
    'res b' or ⌘⌥^B for 1440*900          (think 'b' as in 'best for retina')
    'res h' or ⌘⌥^H for 1680*1050        (think 'h' as in 'hi-res display', like the old 1680*1050 MBP Hi-Res display)
    'res f' or ⌘⌥^F for 1920*1200        (think 'f' as in 'full-hd')
     
    Download link: https://dl.dropboxusercontent.com/u/34729/Change%20Resolution.alfredworkflow
     
    Happy weekend  :D

  4.  

     
    What kind of error are you getting? You can go into Alfred Preferences and right click the workflow in the sidebar, then select Show in Finder. Open up the Terminal app, and drag and drop the workflow's folder into Terminal. Then copy and paste this command and press return:
     
    /usr/bin/ruby recent_downloads.rb " "

    Let me know if you get an error after running that. I don't have access to Mavericks right now, so unfortunately I can't test it myself.

     

    Thanks for the fix

     

     

     

     

     

    I think I got it fixed: Recent Downloads

     

    If it works for you without any problems, I'll go ahead and submit a pull request so ddjfreedom can update the workflow with the fixes. (The problem was the way Ruby handles string encoding in 2.0 vs 1.8.7. Had to explicitly set the string encoding to UTF-8 to get it working properly.)

     

    Thanks for the fix, everything seems to work fine for me!

  5. Unfortunately, this extension stopped working for me. I don't know if it is related to the fact that I've updated to Mavericks or not, but I can't figure out why it is not showing recent downloads anymore:

    as soon as I finish typing the keyword 'Recent', Alfred defaults to fallback results.

     

    Help?

  6. Luca,

     

    One simple way that you could accomplish this for now is to, instead of linking the hotkey to an Applescript action, link it to a shell script. Take your applescript code and convert it into a .scpt file (or whatever it is for an actual applescript), put that applescript in your workflow folder, and from the shell script, run that applescript and pass the argument to it.

     

    Does that make sense?

     

    yes, even if it feels like an hack. I hope they will consider my suggestion :P

  7. Hello Beta tester! 

     

    I've started playing with the new workflow editor ad it's really cool! for example, I'm using it to change the EQ of iTunes using an AppleScript

     

    on alfred_script(q)
    
    tell application "System Events"
    	set iTunesRunning to count (every process whose name is "iTunes")
    end tell
    
    if iTunesRunning = 0 then
    	tell application "iTunes" to activate
    end if
    
    if q = "q" or q = "Q" then
    	set eqname to "quiet"
    else if q = "f" or q = "F" then
    	set eqname to "flat"
    else
    	set eqname to q
    end if
    
    tell application "iTunes"
    	set the current EQ preset to EQ preset eqname
    end tell
    
    end alfred_script

     

    however, I'd also like to use some keyboard shortcut to select the EQs I use the most (flat & quiet) … Right now I'm using a less-than-ideal solution: basically I have three different appleScript:

     

    screenshot20130113at093.png

     

    I'd like to be able to pass a custom parameter when the hotkey is pressed, i.e. ideally there would be an option in this menu that says "Custom parameter…"

     

     

    Overall, congrats to Andrew and Vero for the solid beta!  :)

     

×
×
  • Create New...