• 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: Mail - Extract Links
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail - Extract Links


  • Subject: Re: Mail - Extract Links
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 25 Nov 2013 18:30:10 +1100

On 25 Nov 2013, at 5:12 PM, Christopher Stone <email@hidden> wrote:

decodeQP: returns missing value - not the script proper.

So I think it's a case of a bug -- I put return instead of linefeed in one case there -- and overkill. You don't need to worry about the escape encoding; you could do the job with a couple of simple S&Rs. But for the record:

use framework "Foundation"

on decodeQP:theString
set theString to current application's NSString's stringWithString:theString
set theString to theString's stringByReplacingOccurrencesOfString:("=" & return & linefeed) withString:""
set theString to theString's stringByReplacingOccurrencesOfString:("=" & linefeed) withString:""
return theString as text
end decodeQP:

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: 
 >Mail - Extract Links (From: Christopher Stone <email@hidden>)
 >Re: Mail - Extract Links (From: Shane Stanley <email@hidden>)
 >Re: Mail - Extract Links (From: Christopher Stone <email@hidden>)
 >Re: Mail - Extract Links (From: Shane Stanley <email@hidden>)
 >Re: Mail - Extract Links (From: Christopher Stone <email@hidden>)
 >Re: Mail - Extract Links (From: Shane Stanley <email@hidden>)
 >Re: Mail - Extract Links (From: Christopher Stone <email@hidden>)
 >Re: Mail - Extract Links (From: Shane Stanley <email@hidden>)
 >Re: Mail - Extract Links (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Mail - Extract Links
  • Next by Date: Re: move with System Events
  • Previous by thread: Re: Mail - Extract Links
  • Next by thread: Help with UI scripting of Mission Control
  • Index(es):
    • Date
    • Thread