to use a restAPI I need to create a base64 encoded string from a login/password phrase.
I have found the objC command on the developer website but I don’t get it to work for me from within a applescript. I got this far…
use AppleScript version "2.4" use framework "Foundation" property NSData : a reference to current application's NSData property NSDataBase64EncodingOptions : a reference to current application's NSDataBase64EncodingOptions set mText to NSData's base64EncodedStringWithOptions:"login:passwd" options:(NSDataBase64EncodingOptions's NSDataBase64Encoding64CharacterLineLength)
running this in SD gives me the error: +[NSData base64EncodedStringWithOptions:options:]: unrecognized selector sent to class 0x7fff75d8aad8
Help wanted… I’m still strungling with the translations from the ObjC dev pages towards ApplescriptObjC despite Shane’s efforts :-)