Skip to main content
Known Participant
May 10, 2023
Answered

How to use the script determines Camera Raw. 8 bf filter whether can use

  • May 10, 2023
  • 1 reply
  • 836 views

How to use the script determines Camera Raw. 8 bf filter whether can use, or to judge whether the filter is installed?

 

 

This topic has been closed for replies.
Correct answer Stephen Marsh

@meadX – Perhaps something like this to check if installed? Not sure about checking if it is possible to use...

 

if (/Camera Raw/.test(app.systemInformation)) {
    // Do something if true
}

 

Or:

 

var sysInfo = /Camera Raw/.test(app.systemInformation);
if (sysInfo === true) {
    // Do something if true
}

 

Or:

 

var os = $.os.toLowerCase().indexOf("mac") >= 0 ? "mac" : "windows";
if (os === "mac") {
    if (/Camera Raw\.plugin/.test(app.systemInformation)) {
        // Do something if true for Mac
    }
} else if (os === "windows") {
    if (/Camera Raw\.8bi/.test(app.systemInformation)) {
        // Do something if true for Windows
    }
} else {
    // Do nothing
}

 

 

1 reply

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
May 10, 2023

@meadX – Perhaps something like this to check if installed? Not sure about checking if it is possible to use...

 

if (/Camera Raw/.test(app.systemInformation)) {
    // Do something if true
}

 

Or:

 

var sysInfo = /Camera Raw/.test(app.systemInformation);
if (sysInfo === true) {
    // Do something if true
}

 

Or:

 

var os = $.os.toLowerCase().indexOf("mac") >= 0 ? "mac" : "windows";
if (os === "mac") {
    if (/Camera Raw\.plugin/.test(app.systemInformation)) {
        // Do something if true for Mac
    }
} else if (os === "windows") {
    if (/Camera Raw\.8bi/.test(app.systemInformation)) {
        // Do something if true for Windows
    }
} else {
    // Do nothing
}

 

 

meadXAuthor
Known Participant
May 10, 2023

Thanks 

I don't know why, the judgment is not stable enough, and even if the ACR filter is not present, it will indicate its presence

Stephen Marsh
Community Expert
Community Expert
May 11, 2023

I'm out of ideas, perhaps somebody else has another idea?