Copy link to clipboard
Copied
I'd like that scripts runned by one user, use Millimeters as measurement unit, yet the same scripts but for another user - points.
Is it possible ?
<Title renamed by MOD>
Copy link to clipboard
Copied
Sure, both users can run the scripts simultaneously
Copy link to clipboard
Copied
Are you replying to yourself?
Copy link to clipboard
Copied
Sorry, it seems there is no button `Edit`, so my 2nd msg was just an update.
Copy link to clipboard
Copied
yes, the script just has to check the user identity and then use the desired units. depending on your workflow, the script will check either user name or some other markers that identify the user under your particular setup.
Copy link to clipboard
Copied
Let me explain.
Copy link to clipboard
Copied
You can have startup scripts.
But Server version is more based on instances than users.
Copy link to clipboard
Copied
Hi @mikeb65293881 ,
will document.viewPreferences.measurementUnit work for your environment?
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
yes, it works, but what's about documents.add?
In my workflow few INDDs to be opened, updated, created resulted INDD and finally all docs to be closed.
Sometimes it takes up to few minutes to complete.
Now imagine that the other user runs the same script. All doc's indecies is just a mess.
I need a way how to resolve the task.
Copy link to clipboard
Copied
Like I've said already - Start-up Scripts.
Or just execute some script before / right after opening document.
Copy link to clipboard
Copied
@mikeb65293881 said: "yes, it works, but what's about documents.add?"
Hi Mike,
hm. Will the code below work for you on InDesign Server ?
It does on InDesign Desktop:
var doc = app.documents.add
(
{
viewPreferences :
{
horizontalMeasurementUnits : MeasurementUnits.PIXELS ,
verticalMeasurementUnits : MeasurementUnits.PIXELS ,
strokeMeasurementUnits : MeasurementUnits.MILLIMETERS
// There are some more…
}
}
);
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
Yes, thank you!