deleting .exe files in mac

Good Day!

Sorry just a noob in applescript but did post problematic scripts I have two months ago… a very helpful forum. Anyway, I just found out that my mac have this hidden and unhiddedn executable files (.exe/unix executable file) with file size exactly 288kb and 295kb (all the same)… sounds weird but yes i found around 8 same files hidden in my mac. Anyway, can applescript search ALL exe file (list it all) and delete certain exe files that has 288kb and 295kb? (i guess this should be done by finder)

thanks in advance

Pol

Hi,

you’re not talking about the Photoshop droplets residing in
/Applications/Adobe Photoshop CS2/Examples/Droplets/Photoshop-Droplets/ ?

You can delete them, but you can also use them :wink:

nope… i think these are exe files coming from my mobile phone. Can you help me create a script that delete these exe files?

thanks!

Model: iMac g3 candy blue
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Try this, you have to choose the parent folder,
the script deletes all files in this folder and subfolders which have a name extension “exe” and a size between 280 and 300 kB

set theFolder to choose folder
tell application "Finder" to delete (get files of entire contents of theFolder whose name extension is "exe" and (size > 2.8E+5 and size < 3.0E+5))

Works perfectly! a million thanks!

Model: iMac g3 candy blue
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)