Re: Create a string from raw data
Re: Create a string from raw data
- Subject: Re: Create a string from raw data
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 01 Jun 2011 10:11:56 +0200
Le 1 juin 2011 à 01:49, Shane Stanley a écrit : On 1/6/11 5:15 AM, "Leonid Bogdanov" < email@hidden> wrote: I have a data as an instance of some non-standard class in the clipboard.
When I save this data in a file, it turned to be a simple string, one line
of text.
Can I somehow cast it to a string directly, without saving it to a file and
then reading it back into a variable?
You may try to use:
try set maybe to the clipboard as «class WXYZ» -- rerplace by the true 'non standard' class maybe as text on error errMsg number errNbr --decipher errMsg end try I use this tip quite often.
Yvan KOENIG (VALLAURIS, France) mercredi 1 juin 2011 10:11:50
|
_______________________________________________
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