In Centrestack, to support distributed locking, need to know the process name for the Mac Application used to open file, and add it in File Locking Settings. There are two process name lists, one for windows, the other for Mac. In Distributed Locking Settings, mac process name is defined under 'Apply lock only to the following Mac process (lower case): '. And the name needs to be in lower cases.
The default mac App process list supports Microsoft Word, Excel, PowerPoint and TextEdit.
For other applications, to support file locking in Mac client, need to add the process name in the list.
To determine the process name, on local folder, create a file for the application to open. Name the file so it is easy to search.
In the example here, we create a pdf file called lock001.pdf. Once the file is created, use Acrobat Pro DC to open the file.
Open Terminal. Run 'lsof | grep lock001', to get the processes which open the file.
test-Mac-mini:~ user01$ lsof | grep lock001
QuickLook 42024 user01 txt REG 1,4 203607 35030500 /Users/user01/Documents/lock001.pdf
AdobeAcro 51796 user01 52r REG 1,4 203607 35030500 /Users/user01/Documents/lock001.pdf
Here, the process id for Adobe Acrobat is 51796. Now, run 'ps -p 51796 -w -w ' to get the full process info
test-Mac-mini:~ user01$ ps -p 51796 -w -w
PID TTY TIME CMD
51796 ?? 0:53.56 /Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/MacOS/AdobeAcrobat
Here, the last section of the process info is the process name, 'AdobeAcrobat'. To use it in the distributed locking, need to convert it to lower case. The setting should be:
microsoft word;microsoft excel;microsoft powerpoint;textedit;adobeacrobat;
Save the setting.
Restart Mac client to pick up the new setting. Now, when use Adobe Acrobat Pro DC to open pdf file in Mac client drive, Centrestack will lock the pdf file.
Please sign in to leave a comment.