Script App Deployment Error - "this file was downloaded on an unknown date"

New Contributor II

Hi there,


I've noticed on macOS Ventura script deployment seem to have odd behaviour. Most likely it's my simple install script itself.

The behaviour is that when something is installed / mounted and copied to /Applications that I get an error "this file was downloaded on an unknown date" with the prompt to move said app to the bin. 
Screenshot 2022-11-22 at 10.57.17.png

 However if I click Cancel on the above prompt and go to Finder and run the app by right-click and Open

Screenshot 2022-11-22 at 10.57.34.png

 Screenshot 2022-11-22 at 10.57.42.png

 The app launches completely fine.

This is the script I'm using. Issue is this is happening with all script deployment apps.

mkdir /Users/Shared/3cx-install
cd /Users/Shared/3cx-install

# Installing 3CX Desktop App
curl -L -o 3cx-Mac.dmg ""
hdiutil attach 3cx-Mac.dmg
sudo cp -rf /Volumes/3CXDesktop*/3CX\ Desktop\ /Applications
sudo hdiutil detach /volumes/3CXDesktop*/
open /Applications/3CX\ Desktop\
sudo rm -rf /Users/Shared/3cx-install
exit 0



New Contributor II

I found the issue with this script and all my others. They tend to work fine on Monterey but this issue started happening when applying them to Ventura. Simply removing the open line resolves the issue.


open /Applications/3CX\ Desktop\


 The end-user will just have to launch the app themselves this may be related to the open command being ran from root during script deployment and not as current user.



I checked this again running from jamf and looks like this issue is still happening.