Monday, August 21, 2017

#1 2005-10-12 03:00:43 pm

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

How do I make droplets?

Droplets are scripts that can have files (or folders full of files) dropped onto them and have the script work on some, or all, or the items that were dropped onto it. A droplet's icon will show a downward arrow suggesting files should be dropped onto it.

To create a droplet you must do two things: use the "on open" command around the body of your script and save the script as an application. Here's an example:

Applescript:

on open theFiles
   tell application "Finder"
       repeat with aFile in theFiles
           set comment of aFile to "Groovy!"
       end repeat
   end tell
end open

Files dropped onto this script will immediately change its comment to "Groovy!"! Using the same approach, all kinds of things can be done...changing creator codes, making backups, etc.


Filed under: Finder

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)