Jump to content

Subject22

Member
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    10

Reputation Activity

  1. Like
    Subject22 got a reaction from mrwayne in Open current Safari tab in Chrome - Improved   
    I'm currently working 8am-3am days (well, studying, technically), and probably will be for the next few weeks, but if you're still having trouble on, say, the 24th of June post here again mrwayne and I'll be happy to look into it :-)
  2. Like
    Subject22 reacted to mrwayne in Open current Safari tab in Chrome - Improved   
    Hey there,
     
    Any chance of taking a look at my little issue?
     
    Thanks again for the script!
  3. Like
    Subject22 got a reaction from Jake B. in Clean Up Icons   
    Invoking the hotkey for this workflow cleans up the icons of the currently open Finder window or the desktop (if it has focus). It was a mission and a half getting all the weird edge cases sorted out because the desktop itself (as opposed to a Finder window of ~/Desktop) is not directly scriptable. If anyone can think of a way of neatening up my code I'd love to see it :-)
     

     
    Download: Clean Up Icons
  4. Like
    Subject22 got a reaction from vdesabou in Restart Alfred Workflow   
    Here's a quick little workflow to restart Alfred and his preferences (if they're open).
     

     
    Download (v1.0.2): GitHub
    Keyword: restart
  5. Like
    Subject22 got a reaction from ElderD in Open current Safari tab in Chrome - Improved   
    I removed Flash from my system long ago but occasionally I need to make use of the version bundled with Chrome to view certain web pages properly. There are a few workflows like this around, but as the only browsers I use are Safari and Chrome I wanted something a little more direct than Send URL which led me to this alternative made by Runar. There were a few issues with that workflow, so I made a version which (hopefully) deals with everything in a tidy and intelligent manner. 
     
    If Safari is either not open, or has no windows open, the workflow will post a notification saying so. If you'd like it to also post notifications when URLs are successfully sent to Chrome open the workflow folder (right click the workflow in Alfred and click Show in Finder) and edit the appropriate line in open_in_chrome.scpt (it's clearly marked). The reverse behaviour is also available (i.e.: sending URLs from Chrome to Safari).
     

     
     
    Hat tip to Carlos-Sz for getting Alfred to run the Applescript properly 🙂
     
    Download (v1.0.2): Open in Chrome
    GitHub
    Keywords: openinchrome, openinsafari
  6. Like
    Subject22 got a reaction from mrwayne in Open current Safari tab in Chrome - Improved   
    OK, that's interesting, it definitely works fine on my end. I can't look into that right at the moment, but I'll get back to you when I get a chance. Roughly how long does it take Chrome to launch from closed for you? In seconds, and 'bounces' if you can.
  7. Like
    Subject22 reacted to judgejohn82 in Dropbox Short Links Workflow   
    Awesome, thanks 
  8. Like
    Subject22 reacted to Ddyracer in Empty Downloads folder workflow   
    I added this to your desktop and download workflow, (also added force empty) and now it empties it too! 
  9. Like
    Subject22 reacted to Andrew in AppleScripts don't always run as expected   
    No worries, glad you have it working
  10. Like
    Subject22 got a reaction from spencermountain in Open current Finder window in Terminal/iTerm and vice versa   
    Handy workflow! I made a context aware equivalent triggered by a hotkey. If you're in Finder when you use it it'll open the current directory in Terminal, if you're in Terminal when you use it it'll open the current directory in Finder. I didn't bother including iTerm as I never use it. I'm sure that anyone who's using this kind of workflow will be more than capable of adding support for iTerm, should they need it :-) I'd appreciate any critiques of the AppleScript code I wrote. It's fairly messy, but anything neater (in terms of code) was less robust in actual use.
     
    Download: Directory Switcher
  11. Like
    Subject22 reacted to James in Open current Safari tab in Chrome - Improved   
    haha yess perfect!! thanks a bunch
  12. Like
    Subject22 got a reaction from James in Open current Safari tab in Chrome - Improved   
    Oh that is bizarre. The file that that link refers to on my local machine is correct. The file that that link refers to on my dropbox account online is correct. But actually clicking that link serves up an old version of the file. Try this: http://d.pr/f/Q7vP. Link in the first post now works again.
  13. Like
    Subject22 reacted to hzlzh in [Workflow]Shorten URL (support goo.gl/ bit.ly/ t.cn/ j.mp/ is.gd/ v.gd/)   
    if you need more shortener services, please let me know.
  14. Like
    Subject22 got a reaction from Carlos-Sz in Blur Alfred   
    A while back Andrew posted a technique for setting the degree to which Alfred's window blurs the background immediately behind it and CarlosNZ posted a workflow for changing this setting via Alfred. I got sick of having to restart Alfred every time I changed this so I added some code to automate the process. I thought I might as well post it here, just in case anyone was looking for something along these lines :-) Please bear in mind what Andrew said about this hack:
     

     


    Download: Blur Alfred Keyword: blur
  15. Like
    Subject22 reacted to Andrew in Wallpaper not conserved   
    The background image changing is simply designed to see your theme against different backgrounds to make sure it works, so not persistent in any way.
     
    I'm moving this to closed as I want to keep the bug forum focused
  16. Like
    Subject22 got a reaction from RoboSloNE in Blur Alfred   
    A while back Andrew posted a technique for setting the degree to which Alfred's window blurs the background immediately behind it and CarlosNZ posted a workflow for changing this setting via Alfred. I got sick of having to restart Alfred every time I changed this so I added some code to automate the process. I thought I might as well post it here, just in case anyone was looking for something along these lines :-) Please bear in mind what Andrew said about this hack:
     

     


    Download: Blur Alfred Keyword: blur
  17. Like
    Subject22 reacted to Ddyracer in Blur Alfred   
    I haven't DL yet, but it looks good. Nice work!
  18. Like
    Subject22 reacted to Ddyracer in Blur Alfred   
    This will save me quite some time, I'm gonna use this hack more often now.
  19. Like
    Subject22 got a reaction from nikivi in Open current Safari tab in Chrome - Improved   
    I removed Flash from my system long ago but occasionally I need to make use of the version bundled with Chrome to view certain web pages properly. There are a few workflows like this around, but as the only browsers I use are Safari and Chrome I wanted something a little more direct than Send URL which led me to this alternative made by Runar. There were a few issues with that workflow, so I made a version which (hopefully) deals with everything in a tidy and intelligent manner. 
     
    If Safari is either not open, or has no windows open, the workflow will post a notification saying so. If you'd like it to also post notifications when URLs are successfully sent to Chrome open the workflow folder (right click the workflow in Alfred and click Show in Finder) and edit the appropriate line in open_in_chrome.scpt (it's clearly marked). The reverse behaviour is also available (i.e.: sending URLs from Chrome to Safari).
     

     
     
    Hat tip to Carlos-Sz for getting Alfred to run the Applescript properly 🙂
     
    Download (v1.0.2): Open in Chrome
    GitHub
    Keywords: openinchrome, openinsafari
  20. Like
    Subject22 got a reaction from Tyler Eich in Applescript runs differently in Alfred and in Applescript Editor   
    After playing around for a bit I discovered that the script runs exactly as intended if included via the NSApplescript action. Perhaps due to what Andrew refers to as "security" restrictions on osascript? http://www.alfredforum.com/topic/1862-nsapplescript-vs-run-script/?p=9838
     
     
    EDIT: Turns out there's more to it than that. Here's what I did, and what I found.
     
    Ran via Run Script - Behaviour still not as expected
    Ran via NSApplescript - Behaviour still not as expected
    Ran once via NSApplescript with caching - Behaviour still not as expected
    Ran a second time via NSApplescript with caching - Works perfectly
    Ran a bunch more times via NSApplescript with caching - Works perfectly
    Restart Alfred and run again - Behaviour not as expected the first time
    Run a bunch more times - Works perfectly
     
    So once the script has been cached it appears to work as expected.
  21. Like
    Subject22 reacted to Andrew in Feature Request: Clone workflow   
    To start with, I want to add duplicate at the workflow level, but eventually, I want to make it significantly easier to play around with workflow objects themselves (i.e. copy / paste / duplicate within a workflow).
  22. Like
    Subject22 got a reaction from egla in Just another minimalistic Theme [Light, Dark & El Capitan version] - Now with updated Fonts for El Capitan   
    Ah! That makes more sense. I was thinking that you must have ungodly powers Cheers for the clarification.
  23. Like
    Subject22 got a reaction from Boarder24 in Restart Alfred Workflow   
    I actually made it because I was mucking around with themes and the blur hack, and got sick of having to restart Alfred after each change Also...
     

     

    You're right, it wouldn't work. Alfred would send the Applescript off to be executed (that sounds really brutal ), and the script would then terminate the Alfred 2 process before the workflow ever got around to posting a notification. You'd have to get the Applescript to post the notification itself, which would require the installation of third party tools. Personally, I actually think that having Alfred reappear is more elegant than posting a notification, but that's just me
     
    As for finding a way to invoke Alfred without requiring that the hotkey be supplied manually, I have had some success! First I found the plist where the hotkey's stored (~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist), then I looked into ways of getting an Applescript to read a plist file, but then I was stuck. I could extract the key code for the pressed key easily enough, but I couldn't find a way of converting the key code for a modifier (eg: cmd = 1,048,576) into an actual key stroke. After going round in circles for a while I had to laugh when I found the solution on the Alfred forum itself:
    tell application "Alfred 2" to search I've updated the first post with a version that uses this code
  24. Like
    Subject22 got a reaction from Ddyracer in Empty Downloads folder workflow   
    I like to keep my computer tidy and that means that I often shift the contents of ~/Downloads to the Trash. Doing things manually is so last year, so I made a simple workflow to automate the process.
     


      Download: Trash Downloads
    Keyword: trash downloads
×
×
  • Create New...