Imbed user into files Metadata

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

jtredinn

Imbed user into files Metadata

Post by jtredinn »

Hi all,
wondering if this is possible.

Is there a way to incorporate into my processor script to:
Find the person altering file (User) and imbed this into the files metadata? It really wouldn't matter where, Author, Description, etc.
We have multiple people that work on files and I would like to be able to reference who worked on the file in the file's metadata.

Any ideas? I have found how to do this by entering the user name manually, but wondering if there is a way to pull the user (MacHD-Users-jtredinn).

Thanks in advance!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mikaeru

Imbed user into files Metadata

Post by Mikaeru »

jtredinn wrote:Any ideas? I have found how to do this by entering the user name manually, but wondering if there is a way to pull the user (MacHD-Users-jtredinn).

Code: Select all// Warning: $.getenv () is only available from CS2
app.activeDocument.info.author = $.getenv ("USER");

If you ever need to get access to some specific Mac OS X system-related information, please have also a look at: Mac Environmental Variables

HTH,

--Mikaeru
tms

Imbed user into files Metadata

Post by tms »

I set up another workflow for our photostudio (where every computer has the same user):
- every time you start photoshop you're asked for your name (which is written into a txt file on your desktop)
- when a document is opened the txt file is read and the name is appended to app.activeDocument.info.author

drop me a note if you're interested in the code.

sebastian