Jump to content

Weaselboy

Member
  • Content Count

    56
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Weaselboy

  1. I use the below Applescript in a workflow to open the front Safari tab in Chrome and it seems to work fine for me whether Chrome is active or not. I can't recall where I found this, or I would give credit, but I have been using this since the early days of Alfred 1. on alfred_script(q) tell application "Safari" to set currentURL to URL of current tab of window 1 tell application "Google Chrome" activate if not (exists window 1) then make new window tell window 1 if URL of active tab is "chrome://newtab/" then set URL of active tab to currentURL else make new tab with properties {URL:currentURL} end if end tell end tell end alfred_script
  2. http://en.wikipedia.org/wiki/Imgur I think it got a lot of traction from Reddit users. Clean and simple page.
  3. Nice add. This can now replace the earlier Image Shack workflow. Thanks
  4. Excellent work and thank you! Big time saver. Jut a quick shift-cmd-4 to grab a screen and click it on the desktop then run your workflow. Very slick.
  5. PR> I use an Applescript (below) to do this. Everything above that "System Events" line will be hidden, and apps launched below that line will not be. So in my example, everything but Safari is hidden. on alfred_script(q) tell application "Mail" to launch tell application "Messages" to launch tell application "Calendar" to launch tell application "iTunes" to launch tell application "Contacts" to activate tell application "Reeder" to activate activate application "Finder" tell application "System Events" to keystroke "h" using {command down, option down} tell application "Safari" to activate end alfred_script
  6. There is workflow here that will do exactly what you want. http://www.alfredforum.com/topic/787-restart-without-relaunch/?hl=restart
  7. I have a workflow that runs this bash script to empty the DL folder to the trash. mv ~/Downloads/* ~/.trash/
  8. Got it. Thanks David Nice workflow.
  9. David-- Just so I understand, if I use the current, built in "restart" Alfred system command with the relaunch box already unchecked, I would get the same behavior as this workflow? It appears the upside to the workflow is if one wanted to leave the box normally checked, but wanted to restart on occasion without a relaunch. Have I got that right? I always have the box unchecked, but once in a while that choice is ignored and apps relaunch. I know in other forums many users have this same problem (I understand this is not an Alfred problem/bug). I am wondering if using your workflow would force the no relaunch consistently and get around this OS X bug. Seems like it would.
  10. Megan-- I have had the same thing happen a time or two with different apps. Even a Spotight reindex did not fix it for me either. I ended up deleting the app, then reinstalling it and for whatever reason Spotlight picked it up after that. Last time was with the cookbook app Paprika. I have no idea why this happens, but a delete and reinstall fixed it.
  11. I'm not sure what you are doing differently than me, but I only get one Terminal window with this. ? I have it with a keyword and no argument straight to the Applescript. on alfred_script(q) tell application "Terminal" do script "drutil cdtext" activate end tell end alfred_script
  12. Sorry. This will do it in one Terminal window. tell application "Terminal" do script "drutil cdtext" activate end tell
  13. I bet it is running and you just don't know it. On you second one... you could make a Workflow like this with Applescript that would pop up a Terminal with your results. Or you could use the one you have with the bash script and have it output to "large type" in the workflow. That will popup a text window with the results. tell application "Terminal" activate do script "drutil cdtext" end tell
  14. If that exact command runs in Terminal, it should run from Alfred. With this workflow, you would get no feedback that it had run. Is it possible it is running/working and you just are not aware of it since there is no feedback?
  15. You can do an output to "Large Type" and that will expand to handle a long string of text. I was playing around with a script that run "ls ~/Documents" and the entire output comes up on the screen in the large type box (although not so large any longer). Just an idea.
  16. Let me try and help you out. In the Workflows pane click the plus at the bottom then select Templates/Essentials/Keyword to Script. That will start out a blank workflow for you like in my screenshot. Now double click the keyword section and enter whatever keyword you want... "compact" maybe? Also in that box select that you want no argument. Now double click the run script box. Just paste your script in there and save. That should do it. Now enter compact in Alfred and enter, then your script should run. You can make it nicer by changing the workflow name and with a custom icon if you like.
  17. I checked the "with space" box in the keyword section and that makes it work.
  18. Thanks for the update. The Rotten Tomato info is a nice addition.
  19. This custom search will check the site canistream.it for streaming on most popular streaming services. http://www.canistream.it/search/movie/{query}
  20. I found one https://discussions.apple.com/thread/3179367?start=0&tstart=0 here that looks like it would do the trick.
  21. You need to have the script enclosed in "on alfred_script(q)-end alfred_script" like in my example below. on alfred_script(q) tell application "Mail" check for new mail end tell end alfred_script
  22. Thanks David. Nice job. Working perfectly here on 10.8.2.
×
×
  • Create New...