• 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: Weird choose from list behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird choose from list behaviour


  • Subject: Re: Weird choose from list behaviour
  • From: Brian Christmas <email@hidden>
  • Date: Wed, 14 Nov 2012 08:49:26 +1100

On 14/11/2012, at 12:12 AM, Axel Luttgens <email@hidden> wrote:

Le 13 nov. 2012 à 13:00, Brian Christmas <email@hidden> a écrit :

> G'day scripters.
>
> Have I missed out on seeing reports of a problem with the 'Choose from list' command?
>
> I've never had to use it before, but the following works when trying to quit with the Cancel button, until I actually choose an item from the list, then it fails to quit, instead going to the part of the script following the 'else' statement, and uses the first item of the list. It says 'false' but refuses to acknowledge 'false' exists.
>
> Any advice on what I'm doing wrong please?
>
> Regards
>
> Santa
>
> [a script here]


Hello Brian,

I don't understand exactly your description of the issue you are encountering.
So, if you allow, considering this very simplified of your script:

	set theAnswer to choose from list {"One", "Two", "Three"}
	if theAnswer as text is "false" then
		quit me
	else
		beep 1
	end if

could you restate the issue?

TIA,
Axel


G'day Axel

In the script as posted 'Cancel' works fine if I don't actually select an item.

However, once an item is selected, and i click go, (which takes me to the data entry), then click on 'back to main menu' button, the subsequent clicks on 'Cancel' in the main menu don't actually Cancel, but instead  take me back to the data entry. Hope this is understandable.

Regards, &  thanks

Santa



 _______________________________________________
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


References: 
 >Weird choose from list behaviour (From: Brian Christmas <email@hidden>)
 >Re: Weird choose from list behaviour (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Weird choose from list behaviour
  • Next by Date: Re: Weird choose from list behaviour
  • Previous by thread: Re: Weird choose from list behaviour
  • Next by thread: Re: Weird choose from list behaviour
  • Index(es):
    • Date
    • Thread