Copy link to clipboard
Copied
How to use the script determines Camera Raw. 8 bf filter whether can use, or to judge whether the filter is installed?
@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 f
...
Copy link to clipboard
Copied
@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
}
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I'm out of ideas, perhaps somebody else has another idea?