Copy link to clipboard
Copied
I do not think there's a Menu Command for it. However, here's a snippet you can link to kBar button to do just that.
(function setMagnification() {
var magnificationValue = 1;
isRetina() && magnificationValue /= 2;
app.activeViewer.views[0].options.zoom = magnificationValue;
function isRetina() {
var command, result;
if (isMac()) {
command = 'system_profiler SPDisplaysDataType | grep Resolution';
result = system.callSystem(command);
return /retina/i.test(result);
}
return
...
Copy link to clipboard
Copied
I do not think there's a Menu Command for it. However, here's a snippet you can link to kBar button to do just that.
(function setMagnification() {
var magnificationValue = 1;
isRetina() && magnificationValue /= 2;
app.activeViewer.views[0].options.zoom = magnificationValue;
function isRetina() {
var command, result;
if (isMac()) {
command = 'system_profiler SPDisplaysDataType | grep Resolution';
result = system.callSystem(command);
return /retina/i.test(result);
}
return false;
}
function isMac() {
return $.os.indexOf('Mac') !== -1;
}
})();
Copy link to clipboard
Copied
Hey Tomas!
I can set magnification!
I use your script, Roll it, Slice it up and Flow!
Very Very Helpful.
Thank you so much!
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now