I am looking to create a generic script utilizing common unix commands, specifically, tell the script to place an alias in a user’s home folder.
Example (Pseudo-code)
Start Script
Copy Files A, B, and C to a centralized location for all users on a machine
move an alias of files A, B, and C into a specific folder withing the user’s home for access (want to utilize the unix “~” option if doable)
End script
This doesn’t produce the UNIX shortcut ~ but maybe it will work until something else comes along. The result should work in shell scripts. It returns the path to the current user’s folder in quoted format to avoid issues that might arise when a folder name contains spaces.
set userHomeFol to quoted form of POSIX path of (path to current user folder)
display dialog userHomeFol
set userHomeFol to POSIX path of (path to current user folder)
set finalPath to quoted form of (userHomeFol & "Documents/Folder1/")
display dialog finalPath