Hello, When you get the list of Departments that will be in new lines.To
make that work in the AppleScript a change is
required:departmentList=$(curl -su username:password\
"https://url/JSSResource/departments" \ --header 'Accept:
application/xml, ap...
AppleScript (osascript via shell/bash script) would be a
possibilityhttps://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/PromptforaChoicefromaList.html