stefanl
December 4, 2006, 7:31pm
#1
Hi Folks,
I have put an c file in my project and want to call it with “do shell” - is this the correct syntax?
do shell script (quoted form of POSIX path of (path to me) & "webnwalk") with administrator privileges
Thanks for your help!
Stefan
Try something like this:
quoted form of POSIX path of ((path to me as Unicode text) & "Contents:Resources:webnwalk")
Alternatively, you can use this on OS X v10.4 or later:
quoted form of POSIX path of (path to resource "webnwalk")
stefanl
December 4, 2006, 8:11pm
#3
Hi Bruce,
quoted form of POSIX path of ((path to me as Unicode text) & "Contents:Resources:webnwalk")
works perfect! Thank you very much!
Best regards,
Stefan
stefanl
December 4, 2006, 8:39pm
#4
Hi Bruce,
sorry to bother with another question,
but can you tell me the correct syntax for:
do shell script (quoted form of POSIX path of (path to resource
"Web'n'Walk Manager")) & " connect <nummer> business"
thanks,
Stefan
Dominik
December 4, 2006, 11:21pm
#5
Hi Stefan,
asuming ‘connect business’ are command line arguments for your Web’n’Walk-Tool, you cound try sth like this:
set resPath to quoted form of POSIX path of ((path to me as Unicode text) & "Contents:Resources:")
do shell script "cd " & resPath & "; webnwalk connect <nummer> business"
D.
Hi Dominik,
thanks for your help! I will give it a try and post the feeedback!
Thanks a lot and best regards,
Stefan