This content has been marked as final.
Show 4 replies
-
1. Re: Script to show who exported PDF?
Loic.Aigon Jan 26, 2017 1:47 AM (in response to cbishop01)1 person found this helpfulvar kws = app.activeDocument.metadataPreferences.keywords; app.activeDocument.metadataPreferences.keywords = kws.concat ( app.userName );
-
2. Re: Script to show who exported PDF?
cbishop01 Jan 26, 2017 5:22 AM (in response to Loic.Aigon)This is perfect thanks. I have one question. WHen i change keywords to author it does not display the persons name anymore instead of the name it put NaN. do you know why this is?
-
3. Re: Script to show who exported PDF?
Loic.Aigon Jan 26, 2017 5:42 AM (in response to cbishop01)1 person found this helpfulWhy, no that doesn't make sense to me. It's true that "author" expects a string but even using concat shouldn't force a type conversion to Number.
Anyway, try this instead:
app.activeDocument.metadataPreferences.author = app.userName;
-
4. Re: Script to show who exported PDF?
cbishop01 Jan 26, 2017 6:18 AM (in response to Loic.Aigon)Ok i was just wondering. That fixed it. Either way both correct. Thanks for coming to the rescue again. I think what was going on was that i kept the app.userName inside the ( ). when i tried it before.
Thanks Again