Jump to content

ctwise

Member
  • Posts

    307
  • Joined

  • Last visited

  • Days Won

    23

Posts posted by ctwise

  1. I'm using OneNote 15.36 on macOS Sierra 10.12.6. Snippets expand just fine in OneNote for me. However, in my Tweaking settings I have:

     

    ✔ Slow down simulated key events

     

    Restore clipboard contents: ✔ After Auto Expansion

     

    Restore after 0.5s

     

    ---

    The Slow Down tweak is required for some apps on my Mac (I'm looking at you, HipChat).

  2. 20 hours ago, FroZen_X said:

    Good collection and overall nicely shown :)

    I actually saw that you use CleanMyMac 3, is that overall good of any use?

    Never tried any cleaning app on a Mac oO

     

    Cheers,

     

    Frozen

     

    Yes, it's very useful. I fire it up every so often (every month or two) and let it search for unused items. It can be over-enthusiastic so I tend to ignore much of what it suggests - like deleting unused language files from apps and removing iTunes artwork caches. That said, it provides a curated list for you to choose from including log files, broken login items, broken preferences, etc. Since I do software development I can end up with massive log files that I simply don't notice. I just recovered 10GB of space due to that.

  3. I'm trying to do the same thing. It works with all VPN connections except connections of type IKEv2.

     

    Trying to run this script in Script Editor:

    tell application "System Events"
       tell current location of network preferences
          set service_name to "IKEv2_connection_name"
          do shell script (do shell script "scutil --nc start \"" & service_name & "\"")
       end tell
    end tell
    

    And here is the error:

    error "System Events got an error: No service" number 1
    

    It appears that AppleScript cannot recognize the IKEv2 VPN connection. So I tried to run another script which to print out all the current internet connections in the system:

    tell application "System Events"
       tell current location of network preferences
          set names to get name of every service
       end tell
    end tell
    

    The result shows all the network connections (including "Wi-Fi", "USB Ethernet", "Bluetooth PAN", "Thunderbolt Bridge", all VPN connections of type L2TP, PTPP, IPSec) but it doesn't list any IKEv2 connections although I have set a few of them and they're all working.

     

    Is this a known issue with El Capitan? Is there any workaround for this kind of VPN on El Capitan?

     

    This probably won't work either then, but you can give it a try:

    property newLine : (ASCII character 10)
    set results to ""
    set flag to true
    tell application "System Events"
    	tell network preferences to set locs to every location
    	repeat with loc in locs
    		tell loc
    			set vpns to every service
    			repeat with vpn in vpns
    				if flag is true then
    					set flag to false
    				else
    					set results to results & newLine
    				end if
    				set vpnName to (the name of vpn) as string
    				set results to results & vpnName
    				set results to results & "|" & (kind of vpn)
    			end repeat
    		end tell
    	end repeat
    end tell
    results
    
    
  4. I'm not talking about wanting to have Alfred copying the text in focus, I just want Alfred to be able to use the existing clipboard item as an input. I can't see why this limitation isn't arbitrary? Surely Alfred have permission to the clipboard?

     

    'Copy to clipboard' does exactly that, it copies selected text from the current app to the clipboard.

     

    What _you_ want, is the 'pbpaste' command line utility. Call that from Python to get the contents of the clipboard.

  5. Thanks for the suggestion, can you give me a hint of how to write the one-liner in bash to achieve this?

    It seems like an arbitrary limitation that Alfred can insert the clipboard content as input on a hotkey, but not on a keyword? Is there any technical reason for this or is it arbitrary? I'm thinking about sending a feature request to Crayons Ltd about it.

     

    Yes I'm using the Copy to Clipboard at the end - the only practical way I knew of getting python output out in an Alfred workflow. I think I'm fine with it, however it also inserts a newline at the end. Do you know any way to prevent this newline from happening, so it just paste the python script result from the clipboard and *don't* also insert a newline afterwars?

     

    It's not arbitrary. Hot keys are triggered while another app is active. So Alfred can copy selected text from the current app before Alfred grabs focus and displays it's input window. In comparison, keywords are entered into the Alfred input window while Alfred already has the focus so it can't trigger a copy on the _previous_ application.

     

    If you want to modify something _already on the clipboard_ instead of forcing a copy of what is currently selected, use the command line utility 'pbpaste' and modify the output of that command.

  6. Set $GOPATH to $HOME. Make sure you have ~/bin, ~/src and ~/pkg directories.

     

    That way, anything you go install will be put in ~/bin, which should be on your PATH.

     

    That should work for private development, but what about distributing workflows? I don't know Go. Is there a way to build a static executable?

  7. In Alfred 2, a small gear appeared in the top right corner of the pop up window that would open Alfred Preferences.

     

    The gear is gone in Alfred 3. I’ve never heard of (or used) Command + to open an app's preferences, but following those directions on another post here, I tried it. Failed again.

     

    How do I access Alfred Preferences in version 3?

     

    Every app on OS/X uses the shortcut ⌘, (command-comma) to open the app's preferences.

  8. This workflow stopped working for me after updating to Alfred 3, is it possible to have some fix for it? This is what I get for any search I make : 

     

    TI5STNt.png

     

    It still works with Alfred 3. It's likely you haven't enabled Accessibility for Alfred 3.

  9. Actually, I accidentally left my computer for a bit while trying this on chrome - it works, it just takes a while to load for chrome (whereas it's near-instant for other apps). Don't know if that's the case for you/if you know why that might be, but thanks anyway!

     

    I'm assuming you have a crap-load of bookmarks in Chrome. Safari has a similar problem but it's much, much worse. For Safari I intentionally ignore the bookmarks menu because it's extremely slow. Chrome didn't exhibit the same behavior with the same number of bookmarks as Safari. I'm guessing it gets a lot slower as the number of bookmarks increases.

  10. Hello, great workflow! This isn't working for me with chrome on El Capitan. (When i type "m [anything]" it says "Loading..." and then goes to defaults) I know someone was having that issue previously, was that ever fixed?

     

    This doesn't help you in the slightest but it's working fine for me. If it's not working anywhere you need to make sure that Assistive Devices are enabled for Alfred in the Security settings.

  11. I'm not saying this as a fanboy of VMWare, but simply as an observation. The interface to control VMWare is stable. It's used by both the personal client and the Enterprise server so it needs to be. If controlling your VMs is important to you, you might take that into consideration.

  12. 'ru' isn't a built-in command. If it was installed to one of the system library directories (/bin, /sbin, /usr/bin), then El Capitan moved it during install. You can find it in the migration directory (/Library/SystemMigration/History/Migration-(some UUID)/QuarantineRoot/). The Migration-(some UUID) directory will look something like this - Migration-6D079FB8-BCC2-4A28-B987-1FA2FE3ADE6.

     

    Move the 'ru' command into some safe location (/usr/local/bin, ~/bin, etc.) and make sure that the bin directory you chose is part of your PATH. Even if it's not, the workflow can still work, just provide the full path to the relocated 'ru' command.

×
×
  • Create New...