• 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: Send Mail Headers and Contents to BBEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Send Mail Headers and Contents to BBEdit (From: Christopher Stone <email@hidden>)
 >Re: Send Mail Headers and Contents to BBEdit (From: Shane Stanley <email@hidden>)
 >Re: Send Mail Headers and Contents to BBEdit (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Send Mail Headers and Contents to BBEdit
  • Next by Date: Re: Encrypt/Decrypt a Text File
  • Previous by thread: Re: Send Mail Headers and Contents to BBEdit
  • Next by thread: Re: Encrypt/Decrypt a Text File
  • Index(es):
    • Date
    • Thread