Skip to main content
Participating Frequently
October 23, 2012
Question

Alert if document is already open by another user on server

  • October 23, 2012
  • 1 reply
  • 1243 views

Hi

First off, I know working off servers isn't the best practice because who knows if someone else is making changes to the very file you're supposed to be working on. However, we work directly from our server and the biggest concern is two users both opening and saving changes without being aware they're overwriting another persons work.

Is it possible to run a script upon file open to:

1. check the metadata of the file

2. alert the current user if this is open by someone else, and if this isn't true then to update the metadata to say which user has it open.

File close:

1. remove user information from metadata, so next user opening will not be falsely alerted

A while ago I had some joy with step 1, however step 2 required another save of the file otherwise it's metadata wasn't being picked up by the next user. This in turn meant longer working times because the file would open, then save instantly if it didn't find another users name in the metadata.

Is writing to a log file on the server a better solution which does not require the psd/tiff/eps to be resaved once the curent users info is stored in it?

If this is a better idea is there a way to write into this log, that should Photoshop crash and the regular close script that cleared the log didnt work so to now clear it upon process termination?

Simply put, I want an alert to popup when a file is open by someone else. where this queries the files status or looks at tags placed in the file when i use?

Thanks,

Tom

EDIT: FYI i was using IPTC data store the in use or not in use tags with if clauses containg either alert or save methods.

Message was edited by: thomas.f.elton

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
October 24, 2012

Photoshop is not a file editor. I would think that it would simply read in an image file decode and create  a document to work on.  Most likely it would the close the file for it has no keep to keep it around.  Thefore if it had a lock on the file it would be released.

Adobe may have way to work in groups which will enable users to check out and check images back into a shared development project. I have never looked into that do a search. The is also a Adobe Drive preference which I do not check which may be part of sharing

JJMack
Participating Frequently
October 24, 2012

Thanks for the advice, I'll take a look into the possible check in/out features and at Adobe Drive.

Inspiring
October 24, 2012

Newer versions of Photoshop can edit a file's metadata without opening the file as a document. But I would recommend you find a different approach to version control. I havn't used it but I thought that one method of version control was part of Photoshop. At least there is a menu item named 'Check in...' under the file menu.