Guest User

Untitled

a guest
Jul 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. path = NSBundle.mainBundle.pathForResource('test', ofType:nil)
  4. task = NSTask.alloc.init
  5. task.setLaunchPath(path)
  6.  
  7. task.launch
  8.  
  9. NSTask.launchedTaskWithLaunchPath('script.rb', nil)
Add Comment
Please, Sign In to add comment