Skip to main content
Solved

Arguments passed to applescript all concatenated?

  • June 13, 2017
  • 1 reply
  • 0 views

Forum|alt.badge.img+12

I have an applescript that takes the three standard arguments and a string passed as Parameter 4 from the Policy. Everything works as expected when I run that script from the command line with the set of expected arguments. But when I run the same via a Policy from the Self-Service all arguments are concatenated and interpreted as one single argument, so the poos script is completely lost.

Any idea what might be wrong?

Best answer by mschroder

I think I found it. Jamf always passes 11 arguments, no matter whether they are set or not. So my idea to check for exactly four arguments was not helpful. And the concatenation was due to a bug in my debug output :(

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+12
  • Author
  • Valued Contributor
  • 359 replies
  • Answer
  • June 13, 2017

I think I found it. Jamf always passes 11 arguments, no matter whether they are set or not. So my idea to check for exactly four arguments was not helpful. And the concatenation was due to a bug in my debug output :(


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings