Creating POSIX path to folder on any computer

I want to make a script that will run on more than just my computer that has to deal with a specific file/folder. For instance, I can access my own folder at

set filepath to POSIX path of “/Users/eovnu87435ds/Public/appfolder/customapp.app”

how can I make it work on any computer that has that file, regardless of username?

Thanks for your help!

Hi,

path to home folder

returns the alias specifier to the current user’s home folder

the relative POSIX path is

set filepath to POSIX path of (path to home folder) & "Public/appfolder/customapp.app"