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

Re: Droplet question


  • Subject: Re: Droplet question
  • From: Nigel Garvey <email@hidden>
  • Date: Thu, 28 Feb 2002 23:05:49 +0000

"Timothy K. Wilkinson" wrote on Thu, 28 Feb 2002 09:13:53 -0500:

>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

No. As it's possible to drop more thatn one item at a time onto a
droplet, the variable 'these_items' receives a *list* of aliases. If only
one item is dropped, the list contains only one alias, but it's still a
list and so can be counted.

>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.

>--on open these_items
>set these_items to choose folder

'Choose folder' returns just an alias (not in a list). As an alias
doesn't have any countable elements, it can't be counted.

I'm not sure what you want to happen after that. If you want the folder
to be handled by process_folder(), the easiest thing would be to replace
the entire snippet with:

set this_item to choose folder
process_folder(this_item)

... or:

process_folder(choose folder)

NG
_______________________________________________
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.

  • Prev by Date: RE: Illustrator Text Extraction
  • Next by Date: Re: Re: Can I make this work without using Internet Explorer...
  • Previous by thread: Re: Droplet question
  • Next by thread: Trashing OE's "Old " files.
  • Index(es):
    • Date
    • Thread