In a CEP project, I have a jsx script that returns a full path name of an AI document.
The js part uses that name to read a related text file (so, for somedoc.ai I want to read somedoc-features.txt)
On the mac, the jsx returns the ~ shorthand for the user's homedir. The cep readfile function cannot handle that. Currently I am just replacing the tilde with a hardcoded /Users/Somename but I would certainly prefer to get the proper path from the system