AnsweredAssumed Answered

Path to desktop file for any user

Question asked by SeattleSquirrel on Feb 25, 2012
Latest reply on Feb 25, 2012 by raybaudi


Path to desktop file for any user


Hi everyone,

I have written a script that creates a report, and a prepared email that I send out weekly. The file is saved on my desktop, always with the same name. I had it set up so that the file was automatically added to the email as an attachement... on my computer. However, when my co-worker wanted to do the same, it obviously (in-hind sight!) didn't work since I had it set up as a path in my directories.

So, my question is this - what should the file path look like if I want to attach something on the given user's desktop, no matter who. File would always be named the same, for example "WeeklyReport.pdf" - I just know there's an easy answer out there!

Thanks everyone in advance for your help!


PS. Should add that we are all mac users, not sure if that matters!