Path to me?

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")

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

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

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