Re: Mail - Extract Links
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:
|
_______________________________________________
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