I have tried both of these
Code: Select all
Debug RunProgram(GetUserDirectory(#PB_Directory_Programs) + "WSCHelp.app/Contents/MacOS/WSCHelp","","")
Debug RunProgram(GetUserDirectory(#PB_Directory_Programs) + "WSCHelp","","")
The program launches perfectly within launcher and also if I use finder just not with PB???
CD
PS Moved app to same folder as prog and ran
Code: Select all
Debug RunProgram("Open","WSCHelp.app","")
PPS
Added Chr(34) to start and end of the path including app name and it works when in the application folder however
Specifying this to run the copy in the applications folder:
Code: Select all
Folder.s = GetUserDirectory(#PB_Directory_Programs) + "WSCHelp.app"
Debug RunProgram("Open",Chr(34) + Folder + Chr(34),"")