I’m trying to push an MS PowerPoint file to macOS devices using the File Management action. The action shows as successfully associated with the device, but the file never shows up at the target location: /Library/Group Containers/UBF8T346G9.Office/User Content/Templates
I even tried using a custom script, but still no luck – the file isn’t landing where it should. Any idea why this is happening?
the file gets pushed to the system-level library. But Office apps on macOS actually keep their group container data in the user-level library. Since Hexnode’s File Management action doesn’t support dropping files directly into user libraries right now, the file doesn’t appear where you expect.
No worries though, you can work around this with a custom script that puts the file into the desired library. All you’ll need is a publicly downloadable link for the file, then just substitute it in the script below:
FILE_URL="<replace with downloadable public link of file>"
# Extract filename from URL
FILENAME=$(basename"$FILE_URL")
# Download the file
curl-L"$FILE_URL"-o"$TEMPLATE_DIR/$FILENAME"
# Check if download was successful
if[$?-eq0];then
echo"File '$FILENAME' successfully added to:"
echo"$TEMPLATE_DIR"
else
echo"Failed to download the file."
fi
</replace>
The script ensures the file is placed in the correct directory for the logged-in user. If you face any issues during implementation, feel free to reach out – we’ll be happy to help.