• 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: Emmanuel <email@hidden>
  • Date: Thu, 28 Feb 2002 18:56:57 +0100

At 3:13 PM +0100 28/2/02, Timothy K. Wilkinson wrote:
>
>I'm trying to troubleshoot a droplet I wrote and I think I'm
>misunderstanding what is happening.

"count" works only with a list:

-----------------
count {2}
-----------------
--> 1

-----------------
count 2
-----------------
--> error

I think that the most recent versions of AppleScript / Finder send a list
as the argument of open, even if there is just one item. I may be wrong: my
scripts still include a precautionary line:

-----------------
if class of these_items is not list then set these_items to {these_items}
-----------------

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

References: 
 >Droplet question (From: "Timothy K. Wilkinson" <email@hidden>)

  • Prev by Date: Re: Extracting from text [Lecture]
  • Next by Date: Re: How to get the title as text of a html file
  • Previous by thread: Re: Droplet question
  • Next by thread: Re: Droplet question
  • Index(es):
    • Date
    • Thread