Jump to content

oulipo

Member
  • Posts

    22
  • Joined

  • Last visited

oulipo's Achievements

Member

Member (4/5)

0

Reputation

  1. Great workflow, but the QL app did not work (perhaps it only works for 10.8 ?), so I replaced it by qlmanage -p '{query}‘, and since the quick-look window is sometimes small, I added a script with a cmd trigger that uses "open" instead of quick-look
  2. I'd be interested in a file action that can resize in several format as an Alfred file action (say: it keeps the same aspect ratio, but has a max of 800x600, 1600x1200 etc, or even just scale x0.5 x0.25 etc)
  3. Okay, but why does it have to send a key sequence? doesn't it use an other mean to append to a file?
  4. Awesome, but there is a small bug: if you append to journal using shift and you hold shift down after pressing enter, it sends some keys to the app (probably a cmd+shift+C) -- although I guess it does not have to do that to append to the journal?
  5. Awesome workflow, what would be great would be an "Autosort" option using user defined rules that (rather than deleting the file) would put the file in a particular folder depending on its extension (.pdf / .mp3 / etc. )
  6. I think this could work actually (from http://www.macworld.com/article/2038095/5-automator-workflows-everyone-should-have.html): on run {input, parameters} set theWordCount to count words of (input as string) display dialog (theWordCount & " words in the selected text." as string) end run
  7. Okay, thanks for the answer However, in this case it is not directly the utility I use, but rather an utility (ffmpeg) used by the utility (youtube-dl) I use. Is there a way to load the user's default $PATH variable when launching Alfred script? (it seems that the PATH must not be the correct one since it had not found `ffmpeg`
  8. This is an awesome workflow! One question though, it seems that I can only choose a directory that is immediately in my home dir, would it be difficult to extend it so I can choose eg. Dropbox/Public ? (right now if I type this, it tells "Search google for dropbox/public" )
  9. I encountered a bug in one of my workflow documented here http://www.alfredforum.com/topic/2431-weird-behavior-of-youtube-dl that is due to the fact that `youtube-dl` would not find `ffmpeg` in the PATH when launched from Alfred, I fixed that with a hacky `export PATH=/usr/local/bin/:$PATH` at the start of the workflow, but how would one generally go about doing that in a more robust way ?
  10. This was indeed the problem and I fixed it by adding export PATH=/usr/local/bin:$PATH at the beginning of the script to allow it to find `ffmpeg`, but this is some hack is there a better solution?
  11. I've done it again in the shell and it works, I'm starting to believe that youtube-dl has not the same behavior when launching from the Alfred bash, perhaps because the youtube-dl script relies on ffmpeg and it does not find it in the PATH when launched from Alfred? How could I force this?
  12. ~/tmp❯ url="www.youtube.com/watch?v=JllJTYrbn-w" ~/tmp❯ /usr/local/bin/youtube-dl --extract-audio --audio-format=mp3 -f 18 -o "%(title)s.%(ext)s" "$url" [youtube] Setting language [youtube] JllJTYrbn-w: Downloading video webpage [youtube] JllJTYrbn-w: Downloading video info webpage [youtube] JllJTYrbn-w: Extracting video information [download] Destination: We Were Evergreen - Penguins & Moonboots (2009).mp4 [download] 100.0% of 12.96MiB at 199.16KiB/s ETA 00:00 [ffmpeg] Destination: We Were Evergreen - Penguins & Moonboots (2009).mp3 Deleting original file We Were Evergreen - Penguins & Moonboots (2009).mp4 (pass -k to keep) ~/tmp❯ ls ▕-rw-r--r--▏14 sec │ 3.1M│We Were Evergreen - Penguins & Moonboots (2009).mp3
  13. Perhaps this depends on the particular video that you are trying to download, or perhaps there was a problem with the download? I was trying with and it was working correctly in bash but indeed it would be nice that the workflow allows for errors to filter through to the Grunt notifications, do you know how this could be done?
  14. I slightly modified a youtube-dl workflow to add an action to download the audio, I used this script url="{query}" if [ -z $url ] then echo "No url provided" else /usr/local/bin/youtube-dl --extract-audio --audio-format=mp3 -f 18 -o "$HOME/Desktop/%(title)s.%(ext)s" "{query}" echo "Completed" fi for some reason, if I type an equivalent command in a shell, this will result in an audio named "My Video.mp3" on my desktop, but if I use the Alfred Workflow, this will result in a video named "My Video.mp4" (and not only the audio) Someone sees where there might be a problem? As a reference https://dl.dropboxusercontent.com/u/70378973/Youtube%20Download.alfredworkflow
×
×
  • Create New...