i want to write a script that will open a file under any computer. would i have to get the username of that computer’s user (to, for instance go ‘open file “Users/theusername/file”’)or is there another way? thanks in advance.
Check out the ‘path to’ command. It will return an alias to several common locations, including things like ‘path to home folder’ to get the current user’s home directory, to which you can append the filename you’re after.
Or use the POSIX path prefix “~/yourfilename” to get to the user’s home directory