• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: making a script into a droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >making a script into a droplet (From: "Feldman, Don" <email@hidden>)

  • Prev by Date: Re: Files in a Folder
  • Next by Date: Re: Files in a Folder
  • Previous by thread: making a script into a droplet
  • Next by thread: RE: Screen height and width
  • Index(es):
    • Date
    • Thread