• 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: Droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Droplet


  • Subject: Re: Droplet
  • From: Eric C Saunders <email@hidden>
  • Date: Thu, 6 Apr 2006 08:32:54 -0400



Michelle wrote on 04/05/2006 04:07:28 PM:

> when you drop a group of icons on a droplet, you get a list of
> aliases.  How do you determine which aliases are to files and which
> are to folders?  I can't figure that out.

> -- Michelle

> --
> Science is the defense of ignorance, the insistence that we do not
> know what we do not know.  --Clifford Geertz


Would this fit the bill?



on open droppedfiles
        tell application "Finder"
                set _folderList to (folders of (droppedfiles as alias)) as alias list
                set _fileList to (files of (droppedfiles as alias)) as alias list
               
        end tell
end open

on run
        tell application "Finder"
                set x to choose folder with prompt ""
                set _folderList to (folders of x) as alias list
                set _fileList to (files of x) as alias list
               
        end tell
end run


Hope this helps.

Eric
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure. The
information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited. If you have
received this transmission in error, please notify MeadWestvaco
immediately at email@hidden.
_______________________________________________________________________
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Droplet
      • From: Michelle Steiner <email@hidden>
References: 
 >Droplet (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: FileMaker - press RETURN - Applescript
  • Next by Date: RE: Shell script to extract time
  • Previous by thread: Re: Droplet
  • Next by thread: Re: Droplet
  • Index(es):
    • Date
    • Thread