Tuesday, December 6, 2022


MacScripeter.net will transition to a new Discourse server soon. Watch this space for the date and time of the transition. Please expect the site to experience periods of outage during this transition. See this and this for more details.

#1 2007-08-08 02:56:33 pm

Kevin Bradley
From:: Independence, MO
Registered: 2006-03-13
Posts: 548

Can I create a droplet in AppleScript Studio?

Adding `on open` Support to an Existing Studio Application

If you create an AppleScript Studio application with Xcode's default "AppleScript Application" template, then your application will not have "droplet" support (i.e. passing dropped items to the `on open` handler) like it would if you started with the "AppleScript Droplet" template.

As far as droplets go, the difference between those two templates is that the "AppleScript Droplet" already has the Info.plist file configured correctly. (Side note: When using Script Editor, this information is already added when saving an application that has an `on open` handler.)


To add this information with Xcode, choose the Project menu, then choose Edit Active Target. In the resulting window, look for a Document Types table (this is under properties in Xcode 2.4.1) and add a type with these settings (screenshot):

* Extensions: "****"
* OS Types:   "****"
* Store Type: Binary
* Role:       Editor
* Package:    selected

Contributed by Bruce Phillips

Nitewing '98
I distrust morning people, largely because I suspect them of getting together early one day while the rest of us were asleep and setting up the rules of civilization.



#2 2005-10-11 02:15:34 pm

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

Re: Can I create a droplet in AppleScript Studio?

Yes, you can create AppleScript Studio application that can process dropped files.  Apple has actually included a template for creating a droplet application with AppleScript Studio.

To build a droplet, choose "New Project" from the "File" menu in "Project Builder".  Next, select "AppleScript Droplet" from the list provided.



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)