Hello! Im needing a little help making a simple code work. Wanting to install a PKG from the parent folder of app being run. Error below as well. Im guessing it has to do with spaces? Any help appreciated!
ERROR: installer: Error - the package path specified was invalid: '/Users/USERNAME/Desktop/DESKTOP/Microsoft Office AiO/build/installer.pkg'.
AppleScript:
tell application "Finder"
set myFolder to (quoted form of (POSIX path of (parent of (path to me) as string)))
end tell
do shell script ¬
"installer -allowUntrusted -pkg " & myFolder & ¬
"installer.pkg -target /" with administrator privileges
ERROR: installer: Error - the package path specified was invalid: '/Users/USERNAME/Desktop/DESKTOP/Microsoft Office AiO/build/installer.pkg'.