Jump to content

harvey

Member
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by harvey

  1. Look at me! I'm early this year 🤪 Based on early searches, macOS 12 Monterey seems to use the same commands as macOS 11. Update the code to more clearly identify new OS' going forward and add support for macOS 12. New Packal Link: https://www.packal.org/workflow/flush-dns-106-120 Enjoy!
  2. Hi, thanks for the heads up. Version 2.0.2 pushed to Packal
  3. I have released a new version. The code has been completely re-written so please let me know if there are any issues. I have also added logic to support 11.1+ so if the current command does not change, it should to continue to work without requiring an update. Please ensure you use v2.0.1 Updated link is https://www.packal.org/workflow/flush-dns-106-110
  4. Working on a small re-write. Should be out this weekend. Thanks
  5. Thanks @Pierpaolo for the reminder. I have updated the logic to support 10.15. New version is on Packal.
  6. Thanks @bigorno. I have updated logic to support 10.14 Mojave. New version is on Packal. Used a slightly better method:- #!/bin/bash ver=`sw_vers -productVersion` IFS='.' read -r -a array <<< "$ver" if [ ${array[1]} -eq 6 ]; then echo "Version ${ver} is Snow Leopard" osascript -e 'do shell script "sudo dscacheutil -flushcache" with administrator privileges' elif [ ${array[1]} -ge 7 -a ${array[1]} -le 9 ]; then echo "Version ${ver} is Lion, Mountain Lion or Mavericks" osascript -e 'do shell script "sudo killall -HUP mDNSResponder" with administrator privileges' elif ([ ${array[1]} -eq 10 ] && [ -z ${array[2]} ]) || ([ ${array[1]} -eq 10 ] && [ ${array[2]} -le 3 ]); then echo "Version ${ver} is Yosemite and 10.10.3 or less" osascript -e 'do shell script "sudo discoveryutil mdnsflushcache" with administrator privileges' elif [ ${array[1]} -eq 10 ] && [ ${array[2]} -ge 4 ]; then echo "Version ${ver} is Yosemite and 10.10.4 or higher" osascript -e 'do shell script "sudo killall -HUP mDNSResponder" with administrator privileges' elif [ ${array[1]} -ge 11 -a ${array[1]} -le 14 ]; then echo "Version ${ver} is El Capitan, Sierra, High Sierra or Mojave" osascript -e 'do shell script "sudo killall -HUP mDNSResponder" with administrator privileges' else echo "Version ${ver} is Unknown" exit 1 fi
  7. @deanishe @xilopaint Updated workflow with the new icon.
  8. Do the attached look any better @deanishe @xilopaint? Dark and light themes, highlighted and not variations?
  9. I'm not much of a designer. If your able to provide an icon I'm happy to consider it.
  10. Thanks @CKIDOW . This has now been updated on Packal to support 10.13 High Sierra here http://www.packal.org/workflow/flush-dns-106-1011
  11. Update 12/1/2017: Support for macOS Sierra 10.12
  12. A simple command to Flush DNS cache. Compatible with 10.6 through to 12.0. Takes no arguments but asks for system password to run the task as an admin user. Available on packal.org Any issues, please let me know. Update 04/08/2021: Added support for macOS Monterey 12.0. Commands remain the same based on early Betas. Update 12/12/2020: Bug Fix Update 06/12/2020: Support for macOS Big Sur 11.0 - Re-written code. Also allowed future to use the current command if it remains valid without future release Update 22/12/2019: Support for macOS Catalina 10.15 Update 20/1/2019: Support for macOS Mojave 10.14 Update 20/4/2018: Updated icon Update 24/1/2018: Support for macOS High Sierra 10.13 Update 12/1/2017: Support for macOS Sierra 10.12
  13. Ok, new version is up, same link, any problems, please let me know.
  14. Sorry, that was be being lazy. Just modifying the script now to work on 10.4, 10.5, 10.6, 10.7 & 10.8, will upload shortly.
  15. Getting 'There was an unknown error uploading the file' when trying to upload an exported workflow to the website. Any ideas?
  16. Thanks for the Caffeine port. Functionality slightly different. Used to be able to use 'caff on' or 'caff off' for direct control as well as toggle.
  17. Quickly pieced together a workflow to flush your DNS cache. Any comments, please let me know Download workflow from here: http://goo.gl/i3AOY Update v2 uploaded to support different flush command depending on OS version 10.4 -> 10.8 Note, uploading to AlfTP and hope to have it available to download from there soon too.
×
×
  • Create New...