Arguments passed to applescript all concatenated?

mschroder
Valued Contributor

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?

1 ACCEPTED SOLUTION

mschroder
Valued Contributor

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 solution in original post

1 REPLY 1

mschroder
Valued Contributor

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 :(