Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 22, 2006, 03:33 AM   #1
semaja2
macrumors 6502a
 
Join Date: Dec 2005
Location: Adelaide
Send a message via MSN to semaja2
Convert Unicode text into a string

Hey guys, how do I convert Unicode text into a string for use with AppleScript, like I set a variable to some Unicode text but how do I convert it back into a string?

I tried looking in the Apple documentation but couldn't find a function that would work for me everytime i use the one in the documentation i get this error:

[Session started at 2006-05-20 13:52:29 +0930.]
2006-05-20 13:52:33.701 MultiAlarm[5483] "Error -1700: Can't make end of every «class defE» into type «class insl»."

Cant make <<data ****0523453154354554H35RE4H35TS4H354354>> into type Unicode text. (-1700)


the terminal reveals this for my prefrence file

starbuck:~ jamesas$ defaults read com.semaja2.MultiAlarm
{
alarmSensitivity = <040b7479 70656473 74726561 6d8103e8 84014084 8484084e 534e756d 62657200 8484074e 5356616c 75650084 84084e53 4f626a65 63740085 84012a84 84016497 0686>;
motionEngine = <040b7479 70656473 74726561 6d8103e8 84014084 8484084e 53537472 696e6701 8484084e 534f626a 65637400 8584012b 09706f77 6572626f 6f6b86>;
}
semaja2 is offline   0 Reply With Quote
Old May 22, 2006, 04:29 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
I think defaults understands UniCode. That looks more like encoded data via something like an NSArchiver.
robbieduncan is offline   0 Reply With Quote
Old May 22, 2006, 05:24 AM   #3
semaja2
Thread Starter
macrumors 6502a
 
Join Date: Dec 2005
Location: Adelaide
Send a message via MSN to semaja2
Quote:
Originally Posted by robbieduncan
I think defaults understands UniCode. That looks more like encoded data via something like an NSArchiver.

ahh thats it, all this time and it was a simple option i ticked in bindings, thanks for pointing it out i was ripping my hair out over this
semaja2 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Format string is not a string literal. larswik Mac Programming 5 Jan 17, 2014 10:45 PM
Search a string for a String of a specific format. ncaissie iPhone/iPad Programming 19 Nov 15, 2013 10:42 AM
Truing to convert a HTML email to Plain Text, then re-direct. Applescript inside. Marcus263 Mac Applications and Mac App Store 0 Feb 13, 2013 07:09 AM
Iphone text string limitation alfi Mac Basics and Help 0 Aug 1, 2012 07:07 AM
Is there any software than can convert recorded conversation to text? blueroom Mac Applications and Mac App Store 2 Jun 28, 2012 02:46 PM

Forum Jump

All times are GMT -5. The time now is 05:22 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC