All I want to do is launch an apple script that I've saved as a .app file so will play on launch.
I've launched other applications with this line of code:
System.Diagnostics.Process.Start("/file path/file");
but doesn't work with the script I wrote.
variations of code I've tried:
System.Diagnostics.Process.Start("/file path/file");
or
System.Diagnostics.Process.Start("osascript -e 'tell "/file path/file");
or
ProcessStartInfo info = new ProcessStartInfo("/usr/bin/osascript, -e, tell "/file path/file");
or
ProcessStartInfo info = new ProcessStartInfo("/file path/file");
info.Arguments = "-silent";
Process.Start(info);
i just get the same error when i try to access it:
Win32Exception: Cannot find the specified file
System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) (at <96144e4082204b9b97190689f262201f>:0)
System.Diagnostics.Process.Start () (at <96144e4082204b9b97190689f262201f>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()..... etc. goes on a bit
any ideas? .. you all seem to be much smarter than me
thanks
↧