Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- path = NSBundle.mainBundle.pathForResource('test', ofType:nil)
- task = NSTask.alloc.init
- task.setLaunchPath(path)
- task.launch
- NSTask.launchedTaskWithLaunchPath('script.rb', nil)
Add Comment
Please, Sign In to add comment