if ($.os.search(/windows/i) change to Mac?
Hi guys! I have a script I used a lot on my pc, but now I'm on a Mac it's only letting me select .ai files instead of .png or .psd or .jpeg files that I need. I think it's down to this line
if (theLayer.kind != "LayerKind.SMARTOBJECT") {alert ("selected layer is not a smart object")}
else {
if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog ("please select files", "*.pdf;*.ai;*.psd;*.tif;*.jpg;*.png", true)}
else {var theFiles = File.openDialog ("please select files", getFiles, true)};
if (theFiles) {
I've tried changing with the JS reference but nothing seems to work for me. I can post the whole script if necessary.
Thanks so much guys ![]()