D DouglasMcKibbin macrumors newbie Original poster Dec 2, 2007 1 0 Dec 2, 2007 #1 How can I write a simple Boolean expression for an if/then statement that tests whether or not there is a file on the desktop whose filename begins with "TNV", There appears to be no wildcard character in applescript.
How can I write a simple Boolean expression for an if/then statement that tests whether or not there is a file on the desktop whose filename begins with "TNV", There appears to be no wildcard character in applescript.
Sayer macrumors 6502a Jan 4, 2002 981 0 Austin, TX Dec 2, 2007 #2 Ironically what you wrote is almost exactly what you use e.g. Code: get every item in desktop whose name begins with "TNV" Here is a working script: Code: tell application "Finder" set fileList to (get every item in desktop whose name begins with "TNV") if length of fileList > 0 then beep 2 end tell
Ironically what you wrote is almost exactly what you use e.g. Code: get every item in desktop whose name begins with "TNV" Here is a working script: Code: tell application "Finder" set fileList to (get every item in desktop whose name begins with "TNV") if length of fileList > 0 then beep 2 end tell