Jump to content

homever

Member
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by homever

  1. I know there's a built-in Eject feature in Alfred. 

    Wondering if there's a way to monitor system mounting behaviour and post notification? 

    For example,  when a thumb drive is attached, Alfred then displays a notification right away, more like what HardwareGrowler does.

     

    If it can be achieved, how about make it a built-in feature along with the existing eject feature under Alfred's system option.

  2. This IS interesting.  When I set to run NSApplescript the result is random at best.  I set the workflow to run from a hotkey.  Each time, the number of seconds that passes before the dialog appears is random, from instant, to the required 10 secs.

     

    When I set the hotkey to run the action 'script' and set to osascript as David suggests, it, so far, has been waiting the required amount of time before the dialog pops up.

    exactly! Iam now using walkaround latter method...

  3. That is interesting. Even more so that I got it to work correctly the first time. I'll check with Andrew and see if knows anything about this. As a workaround, instead of using NSAppleScript, if you add a "Run Script" and set the language to osascript, it seems to work as expected.

    Also had this issue. Any comments on this?

  4. Hi,

     

    I found a useful applescript here. It allows to switch iTunes accounts in one sec. Very useful to those who have multiple iTunes accounts.

     

    Anyone can help craft the codes to make it compatible with Alfred?

     

    Thanks in advance.

     

    Here's the code.

    set _delay to 1
    set newLogin to button returned of (display dialog "Select account:" buttons {"Country 1", "Country 2"} default button "Country 1")
    set thisApp to button returned of (display dialog "Which Store?" buttons {"iTunes", "App Store", "Cancel"} default button "iTunes")
    if newLogin is "Country 1" then
        set newLogin to "email 1"
        set newPass to "password 1"
    else if newLogin is "Country 2" then
        set newLogin to "email 2"
        set newPass to "password 2"
    end if
    if thisApp is "App Store" then
        tell application "System Events"
            tell process "App Store"
                set frontmost to true
                delay _delay
                try
                    click menu item "Sign Out" of menu 1 of menu bar item "Store" of menu bar 1
                end try
                delay _delay
                click menu item "Sign In…" of menu 1 of menu bar item "Store" of menu bar 1
                delay _delay
                keystroke newLogin
                keystroke tab
                keystroke newPass
                keystroke return
                delay 4
                keystroke return
            end tell
        end tell
    else if thisApp is "iTunes" then
        tell application "System Events"
            tell process "iTunes"
                set frontmost to true
                delay _delay
                try
                    click menu item "Sign Out" of menu 1 of menu bar item "Store" of menu bar 1
                end try
                delay _delay
                click menu item "Sign In…" of menu 1 of menu bar item "Store" of menu bar 1
                delay _delay
                keystroke newLogin
                keystroke tab
                keystroke newPass
                keystroke return
                delay 4
                keystroke return
            end tell
        end tell
    end if
    
  5. I've checked back in email and actually in May last year, chatted with Nick from PopClip about this. It's because PopClip simulates a cmd+c copy to the clipboard when users click on a field, which means as far as Alfred is concerned, this is a human interaction. Multiple clicks would be like a user pressing cmd+c multiple times which is exactly what Alfred is using for merging.

     

    From Nick:

     

     

    It might be worth picking this issue up with PopClip to see if there is anything else which can be done, else I suggest turning off clipboard merging in Alfred.

     

    [moving to the Noted sub-forum]

     

    Cheers,

    Andrew

    I see. Thank you Andrew. You're very helpful:)

  6. Hi,

     

    Just noticed that when I enabled popclip, double or triple click (which usually perform Select All action) on texts or address bar in Safari or Chrome will trigger clipboard merging. Can be reproduced every time.

    Please take a look. Can be quite annoying when that sound comes out.

     
    Alfred verison: 2.1.1(227)
    Mavericks 10.9.1 (13B42)
  7. Hmm, that is strange. I'm not seeing that at my end. Unfortunately I don't have time to look into this right now so I'll have to ask you to hang tight for a bit. Please post here again every so often to remind me. I might have some time this weekend.

     

    Strange to me, it used to work great. Just now it opens Chrome in Parallels Desktop....don't know why...is it because Chrome.app isn't running?

×
×
  • Create New...