Re: making a script into a droplet
Re: making a script into a droplet
- Subject: Re: making a script into a droplet
- From: Bill Briggs <email@hidden>
- Date: Thu, 9 Aug 2001 16:29:19 -0300
At 2:47 PM -0400 09/08/01, Feldman, Don wrote:
on open folderList
set allFiles to folderList --probably wasted step
parseFiles(allFiles)
end open
on run
set finalData to {}
set folderList to (choose folder)
parseFiles(folderList)
end run
The problem is that "on open" returns a list of things dropped on
it, even if only one, not an alias to a single item. In contrast,
"choose folder" returns an alias to the folder. You have to
accommodate the list that "on open" returns to get the subroutines to
work properly. They are not getting what they need when you pass them
the list from the open handler.
- web