Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Droplet



Title: Re: Droplet
Michelle Steiner asked ...
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.

yet another variant ...
on open dropList
      try
            tell application "Finder"
                  repeat with folderRef in dropList
                        if (class of item folderRef) is folder then

                        -- do your stuff here

                        end if
                  end repeat
            end tell
      on error errText number errNr
            if errNr = -128 then
                  return
            else if errNr = -2700 then
                  errText
            else
                  "Error = " & errNr & return & errText
            end if
            display dialog the result buttons {"OK"} default button 1
      end try
end open

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.