I want to open applications using
but I'm having a problem when the application's name has a space in it for example with "Quicktime Player.app" When I do this:
it doesn't work. So to eliminate the escaping of the quotes (\") I renamed it Quicktime.app and tried
and it worked fine. Then for some reason when I tried it again without the space but with the escaped quotes
it doesn't work!! Even without the space!
Any ideas?
Code:
Runtime.getRuntime().exec()
Code:
Runtime.getRuntime().exec("open \"/Applications/Quicktime Player.app\"")
Code:
Runtime.getRuntime().exec("open /Applications/Quicktime.app")
Code:
Runtime.getRuntime().exec("open \"/Applications/Quicktime.app\"")
Any ideas?