Re: Send Mail Headers and Contents to BBEdit
Re: Send Mail Headers and Contents to BBEdit
- Subject: Re: Send Mail Headers and Contents to BBEdit
- From: Emmanuel LEVY <email@hidden>
- Date: Sat, 09 Aug 2014 23:53:45 +0200
Throwing an error when it finds nothing is certainly a very good idea, however even for us it's kind of a PITA and we eventually wrote a matchpattern(thepattern, thestring) handler which returns true or false.
In some cases you can get rid of the error-throwing behavior by using "all occurrences", since then "find text" would return an empty list instead of throwing an error.
Emmanuel
On Aug 8, 2014, at 7:21 PM, Christopher Stone wrote:
> On Aug 08, 2014, at 08:32, Shane Stanley <email@hidden> wrote:
>>> No heckling Shane! :)
>>
>> Can't I repeat an old one?
>> ...
>> I know it's less typing, but it still makes me wonder why.
> ______________________________________________________________________
>
> Hey Shane,
>
> I thought I'd answered that one before.
>
> Because find text actually throws an error if it doesn't find something, and you have to handle that anyway. I don't want 300 try-on-error blocks in my code body.
>
> And then there's the less typing bit. :)
>
>
> _______________________________________________
> 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
_______________________________________________
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