I had a working Applescript that referenced a folder on what was a mounted XSAN volume. When I moved the folder to a mounted RAID array (same name) the script broke. The line in question is:
set web_folders to (folders of alias "/Volumes/USER1/Common/Web-Updates") as alias list
When USER1 was mounted as an XSAN volume it worked. Now that USER1 is a RAID volume I get the compiler error: “File /Volumes/USER1/Common/Web-Updates wasn’t found.” Interestingly, if I remove the ‘alias’ it will compile:
set web_folders to (folders of "/Volumes/USER1/Common/Web-Updates") as alias list
but I then get a run error: “Can’t make every <> of “/Volumes/USER1/Common/Web-Updates” into type <>.” Finally, if I remove the other ‘alias’:
set web_folders to (folders of "/Volumes/USER1/Common/Web-Updates") as list
I get the error: “Can’t get every folder of “/Volumes/USER1/Common/Web-Updates”.” I don’t have a clue why an XSAN volume vs. a RAID volume should matter but obviously it does. Can someone help me shoot this bug? TIA.