Re: Droplet
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
References: | |
| >Droplet (From: Michelle Steiner <email@hidden>) |