Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

String manipulation methods

Method

encodedHexFrom:

Summary

Encodes characters outside ASCII 32-126 in hexadecimal form (&#xHHHH;)

Signature

+ (id)encodedHexFrom:(id)listOrString

Parameters

listOrString = a string or list of strings

Result

If passed a string, returns the encoded string; if passed a list, an array of encoded strings.

Availability

Version 1.0.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set aString to "café à Paris"

set theResult to current application's SMSForder's encodedHexFrom:aString

ASify from theResult

--> "café à Paris"

theResult as text

--> "café à Paris"


Click here to open script in a script editor