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

Droplet question


  • Subject: Droplet question
  • From: "Timothy K. Wilkinson" <email@hidden>
  • Date: Thu, 28 Feb 2002 09:13:53 -0500

I'm trying to troubleshoot a droplet I wrote and I think I'm
misunderstanding what is happening.

I'm using the Finder droplet for nested folders in the AppleScript
Guidebook. It was my understanding that when you dropped a file or folder
onto the droplet it makes an alias to that folder or file.

ex.

on open these_items -- should put an alias on the folder dropped into the
variable these_items

If that is they case I'm wondering why if I remover the "on open" handler
and substitute the following code it fails every time because it says the
alias can't understand "count" message.

Any enlightenment would be most appreciated. I'm including the section that
is bombing below.

<snippet>
property the_database : {}
property the_field : {}

-- This droplet processes both files or folders of files dropped onto the
applet
--on open these_items
set these_items to choose folder

try
repeat with i from 1 to the count of these_items
set this_item to (item i of these_items)
set the item_info to info for this_item
if folder of the item_info is true then
process_folder(this_item)
else if (alias of the item_info is false) then
process_item(this_item)
end if
end repeat
on error errmsg
display dialog errmsg
end try
<snippet>


Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Droplet question
      • From: Emmanuel <email@hidden>
    • Re: Droplet question
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Displaying Dialog with text only
  • Next by Date: Re: Displaying Dialog with text only
  • Previous by thread: Re: Anyone working with Quark in OSX and getting good results of fonts size?
  • Next by thread: Re: Droplet question
  • Index(es):
    • Date
    • Thread