Jump to content

kevnk

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by kevnk

  1. If you often scale designs using the golden ratio, you are probably tired of copy/pasting from your calculator. Now, with the Golden Ratio Workflow, after selecting a number, a simple hotkey will paste that number multiplied or divided by 1.618, the golden ratio. cmd+opt+shift+G will multiply the number by 1.618 and paste the result. cmd+opt+G will divide by 1.618 and paste it.

     

    View it in action here: https://monosnap.com/direct/WY9O1oh71mMjGNfYL94kwazBxeHnoU

     

    Try it out for yourself here: http://www.kevnk.com/public/alfred/Golden-Ratio.alfredworkflow

  2. 12 hours ago, louischristopher said:

    Thanks for sharing such a useful tool. But before getting information from your introduction, I have already have used TuneFab Spotify Music Converter for helping me with the annoying problem of removing the Ads from my listening process. It works so far so good.

     

    Seems useful, but maybe more time-consuming or complicated getting it all set up with proxies and waiting for conversions (as opposed to just streaming in the Spotify player). For example, Spotify offers a Daily Mix playlist or a Discover Weekly playlist that they generate for you. Those playlists will have some songs I like and some I don't. I don't want to waste time downloading songs I don't like AND not be able to easily give Spotify feedback on whether or not I like a particular artist or song. I'd much prefer to use Spotify's interface and mute the ads.

     

    But I guess that's a personal preference and depends on your use-case (e.g. You can't use this workflow for mobile devices, but if you convert all the songs and upload them to your phone, you could.) It doesn't really feel like TuneFab would be legal... but again, a personal preference to cross that line or not...

     

    Thanks for sharing your workflow! I appreciate your perspective.

  3. I'm a developer and the copy merge feature comes in very handy. Although, often I need to paste it into my code editor and do some additional editing - like add commas between each or && or whatever.

     

    It would be nice to (ideally, through the alfred interface) quickly change the setting of what separates each appended item—even set/add custom character(s).

     

     

    Alfred Preferences 2016-09-15 11-01-46.png

  4. Here's how it works:

    1. Open Spotify and start playing music
    2. Hit the hotkey to start Mutify workflow
    3. When it finds a track that's less than 35 seconds long (because that's likely an ad), it sets Spotify's volume to 0 (it is only muting Spotify and nothing else).
    4. When the ad is over, it resets Spotify's volume back to what it was
    5. NOTE: When you pause or quit Spotify, Mutify will also quit. Start Mutify again with your hotkey after playing Spotify again.

    You can download the Mutify workflow here: http://www.kevnk.com/public/alfred/Mutify.alfredworkflow

     

    Feel free to leave feedback here or email me at hello@kevnk.com

     

    Enjoy!

  5. I have a workflow that is listening for spotify ads (so i can mute them). 

     

    nWVa8QviRUSdRUAE6y0ww3zLs6sB9g.png

     

    I have a while loop listening. When it finds an ad (a track with < 35 second duration), it sends a notification - but not an alfred style post notification; just the default applescript-like notification.

     

    Here's the code:

     

    Note: osascript -e "display notification \"Muting ad for $sleepDuration seconds\" with title \"Mute Spotify Ads\""

    This is what I'd like to replace with an alfred Post Notification.

    
    vol=`osascript -e 'tell application "Spotify" to sound volume as integer'`;
    
    while :
    	do
    		state=`osascript -e 'tell application "Spotify" to player state as string'`;
    		sleepDuration=1
    		if [ $state = "playing" ]; then
    			duration=`osascript -e 'tell application "Spotify" to duration of current track as string'`;
    			duration=$(echo "$duration / 1000" | bc);
    
    			if [ $duration -le 35 ]; then
    				position=`osascript -e 'tell application "Spotify" to player position as string'`;
    				position=$(echo "$position" | bc);
    				sleepDuration=$(echo "$duration - $position" | bc);
    				osascript -e "tell application \"Spotify\" to set sound volume to 1";
    				if [ $sleepDuration -le 0 ]; then
    					sleepDuration=1;
    				else 
    					osascript -e "display notification \"Muting ad for $sleepDuration seconds\" with title \"Mute Spotify Ads\""
    					sleep $sleepDuration;
    					osascript -e "tell application \"Spotify\" to set sound volume to $vol";
    					sleepDuration=1;
    				fi
    			else 
    				osascript -e "tell application \"Spotify\" to set sound volume to $vol";
    				sleepDuration=1;
    			fi
    			sleep $sleepDuration;
    		else 
    			break;
    		fi
    	done
    
    osascript -e "tell application \"Spotify\" to set sound volume to $vol";
    
×
×
  • Create New...