diff --git a/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript b/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript index 604f81a2..c40c3256 100755 --- a/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript +++ b/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript @@ -97,7 +97,11 @@ on itemstoinstall() if not ShowRemovalDetail then if removalcount > 0 then if restartRequired then - set |RestartAction| of removalitem to "RequireRestart" + try + set |RestartAction| of removalitem to "RequireRestart" + on error + set removalitem to removalitem & {|RestartAction|:"RequireRestart"} + end try end if set display_name of removalitem to "Software removals" set |description| of removalitem to "Scheduled removal of managed software."