I need to open .app file from perl script which will be invoked by Print filter. This perl script do lot other stuffs but at the end of that, I need to open .app from a folder. I tried the command "open /Applications/abc.app" on the terminal and it works. Same thing I need to do from Perl script. Tried below from Perl but does not work. Any idea where is the issue? Also tried - open "/Applications/abc.app" and open ("/Applications/abc.app");
Error is: 24/03/14 8:22:33.526 am open[5181]: spawn_via_launchd() failed, errno=54 label=[0x0-0xca0ca].abc path=/Applications/abc.app/Contents/MacOS/abc flags=0 : LaunchApplicationClient.cp #990 LaunchApplicationWithSpawnViaLaunchD() q=com.apple.main-thread
24/03/14 8:22:33.526 am open[5181]: spawn_via_launchd() failed, errno=54 label=[0x0-0xca0ca].EFI.PrintMessenger path=/Applications/abc.app/Contents/MacOS/abc flags=0
Tried to open other apps like chess.app or firefox.app. But same error