-- This is an AppleScript droplet that copies the files dropped on it -- to the destination folder specified below without copying any of the extended attributes -- This is useful when the destination folder is on a non-HFS volume -- and the "._" files are not desired -- The 'copy_without_xattr' script is available from http://hayne.net/MacDev/Perl -- Cameron Hayne (macdev@hayne.net) Sept 2005 property destinationFolderPath : "/Volumes/MyUSBDrive" property copyScriptPath : "/Users/fred/Scripts/copy_without_xattr" on open droppedFiles set filePaths to "" repeat with aFile in droppedFiles set filePaths to filePaths & quoted form of POSIX path of aFile & space end repeat do shell script copyScriptPath & space & filePaths & space & destinationFolderPath end open -- THE FOLLOWING ROUTINE APPEARS ONLY WHEN THE DROPLET IS DOUBLE-CLICKED on run display dialog "Copy Without XAttr" & return & return & Â "Drag files onto this droplet to copy them to the folder " & destinationFolderPath buttons {"Set Destination...", "OK"} default button 2 if the button returned of the result is "Set Destination..." then set currentDestFolder to POSIX file destinationFolderPath set newDestFolder to (choose folder default location currentDestFolder with prompt "Set Destination Folder") set destinationFolderPath to quoted form of POSIX path of newDestFolder as string end if end run