Jump to content

nammin

Member
  • Posts

    16
  • Joined

  • Last visited

Posts posted by nammin

  1. was trying to download a video but got an error did the debug

     

    [20:30:38.216] Logging Started...
    [20:30:39.863] Download Media[Script Filter] Queuing argument ''
    [20:30:40.310] Download Media[Script Filter] Script with argv '' finished
    [20:30:40.315] STDERR: Download Media[Script Filter] /Users/bangtan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D7D5BD4F-6C64-429C-BE22-9982EF6680C8/get_title_and_url.js: execution error: Error: Error: You need a supported browser as your frontmost app (-2700)
    [20:30:40.316] Download Media[Script Filter] {"items":[{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"video","add_to_watchlist":true,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"video","Add_to_watchlist":true,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","variables":{"media_type":"video","add_to_watchlist":false,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"video","add_to_watchlist":false,"full_playlist":true}}},"uid":"Download video clipboard","title":"https://twitter.com/allabaomar/status/1624526541286936577?s=20","arg":"https://twitter.com/allabaomar/status/1624526541286936577?s=20"}]}
    [20:30:41.401] Download Media[Script Filter] Processing complete
    [20:30:41.403] Download Media[Script Filter] Passing output 'https://twitter.com/allabaomar/status/1624526541286936577?s=20' to Run Script
    [20:30:41.629] ERROR: Download Media[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - yt-dlp (Errno::ENOENT)
    	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `popen_run'
    	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:159:in `popen2'
    	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:342:in `capture2'
    	from /Users/bangtan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D7D5BD4F-6C64-429C-BE22-9982EF6680C8/downmedia_functions.rb:153:in `download_url'
    	from /Users/bangtan/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/CE72169F-CA3A-47DF-AB89-44AFCD337DEE:5:in `<main>'

     

  2. On 4/22/2022 at 12:20 PM, vitor said:

    When asking for help with a Workflow, please upload it somewhere so we can properly help you. You haven’t posed a question. I’m guessing your code isn’t working, which is expected from the screenshot. It should instead be open "infuse://LONG_CODE_HERE&url=${1}". Or better yet, use an Open URL Action; no code necessary.

    so you just put 

    infuse://x-callback-url/play?
    x-success=some-app://x-callback-url/playbackDidFinish&
    x-error=some-app://x-callback-url/playbackDidFail&
    url= 

    this in for it?

  3. i saw you helped someone else @Vero with 

    Quote

    If it's already checked, remove Alfred fully (using the minus button) and re-add Alfred to the Accessibility permissions. Sometimes, macOS loses resolution of permissions, so the above should solve it :)

    i removed and re-add it seemed to help :D 

  4. 15 hours ago, Vero said:

    @nammin Have you tried setting a different hotkey combo in Features > Universal Actions to see whether your choice of hotkey conflicts with something else?

     

    What happens when you use the hotkey? Do you hear any error sounds?

     

    If you'd like further help, please provide as much information as possible. :)

    yeah i tried different combos - no noises or anything ive always used option+k if its not on option+k it makes a noise thou
    not sure if the image would help
    479260927_CleanShot2022-02-11at14_24.53@2x.thumb.png.9aafae3b10c8f46494fc4b84d03183a9.png

  5. #!/bin/sh
     
    file=$1
    times=$2
    x=1
     
    while [ $x -le $times ]; do
        ffmpeg -ss $(echo "$x * 60" | bc -l) -i "$file" -an -vframes 1 -f image2 -vf "yadif,scale='max(sar,1)*iw':'max(1/sar,1)*ih'" image$(echo "$x").png;
        x=$(( $x + 1 ))
    done

    usage syntax is like this:
    scriptname movie.mkv 20
    scriptname is the name of the file you paste the commands in, movie.mkv is the video file, number at the end is the number of screenshots you want

×
×
  • Create New...