Re: Weird choose from list behaviour
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