I have a script that needs to branch on whether or not a file (or folder) is on the Clipboard.
###What is Best Method to Detect (Check for) a File on the Clipboard?
Here’s the simple script I have. Seems to work fine, and runs fast.
But I’d like to know if there is a better or faster method.
set clipRec to the clipboard as record try set fileObj to «class furl» of clipRec set isFileOnCB to true on error set isFileOnCB to false end try return isFileOnCB
Thanks for your help and suggestions.