• 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: choose from list bug?? (embarrassed OP)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: choose from list bug?? (embarrassed OP)


  • Subject: Re: choose from list bug?? (embarrassed OP)
  • From: Donald Hall <email@hidden>
  • Date: Wed, 28 Mar 2007 22:50:23 -0600

Kai is more or less correct. I misread the textbook I was using to refresh my memory on choose from list. It doesn't have the key words and the 'string' part in different type faces. I should have realized what the book meant.

How embarrassing. :-[

Don

On 27 Mar 2007, at 19:49, Stockly, Ed wrote:

 In this command:

choose from list a OK button name "Choose" with prompt string pstring

There's an improper coersion: string pstring

The "string" is not needed, pString is already a string.

I don't believe this was intended as a coercion. My guess is that the word string was simply copied inadvertently from the entry in Standard Additions' AS dictionary, which reads (in part):


choose from list v : Choose one or more items from a list
choose from list list of number or string : a list of numbers and/or strings to display
[with title string] : the dialog window title
[with prompt string] : the prompt to be displayed in the dialog box
etc...


The required syntax (with prompt) is shown in bold. The plain text after that (in this case, string) merely denotes the value class expected or required, and should be replaced by an actual value of the class indicated.

---
kai


-- Donald S. Hall, Ph.D. Apps & More Software Design, Inc. email@hidden http://www.appsandmore.com _______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Shell grep help - how to get only first occurrence of match?
  • Next by Date: shell script - duplex printing prefs
  • Previous by thread: Re: Entourage
  • Next by thread: shell script - duplex printing prefs
  • Index(es):
    • Date
    • Thread