Guest User

Untitled

a guest
Jul 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. ## auto open rdoc rcov with rake safari (Skiz)
  2.  
  3. task :rcov do
  4. system 'osascript safari.as `pwd`/coverage/index.html' if PLATFORM['darwin']
  5. end
  6.  
  7. task :rdoc do
  8. system 'osascript safari.as `pwd`/rdoc/index.html' if PLATFORM['darwin']
  9. end
  10.  
  11.  
  12. ## safari.as
  13. on run argv
  14. tell application "Safari" to reopen
  15. tell application "Safari" to activate document 1
  16. tell application "Safari" to set URL of document 1 to item 1 of argv
  17. tell application "Safari" to activate
  18. end run
Add Comment
Please, Sign In to add comment