Re: booleans...
Re: booleans...
- Subject: Re: booleans...
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 20 Mar 2018 14:45:25 +0900
Stan,
Thank you.
> On Mar 20, 2018, at 14:03, Stan Cleveland <email@hidden> wrote:
>
> On Mar 19, 2018, at 09:43 PM, Jean-Christophe Helary
> <email@hidden <mailto:email@hidden>>
> wrote:
>>
>> myBoolean(alias (((path to desktop) & "not.there") as text))
>>
>> just gives me an error.
>
> Hi Jean-Christophe,
>
> I see the problem. Interestingly, the error happens before the handler is
> even called. You need the error to happen inside the handler.
I know :)
> If you don't mind making a special-purpose myBoolean handler, you can get
> what you need.
I can see that. But I was mostly toying with the idea of getting something
similar to what they have in Lisp: either a statement is true, or it is false.
That allows you to do all kinds of interesting things because what matters is
not so much the side effects of the statement, but it's boolean value.
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
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