Restrict file types on droplet
问题 This question isn't limited to people who know AppleScript, if you do Cocoa, etc., you should know the answer to this: I'm making a droplet in AppleScript that compresses JavaScript files, so obviously, I only want JavaScript files to be allowed into the scripts. Any ideas? Thanks so much. 回答1: property kJavascriptExtension : "js" property pValidFileList : {} on open of theFiles -- Executed when files are dropped on the script set fileCount to (get count of items in theFiles) repeat with