• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Create a string from raw data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Numbers: 'make new' failing in various ways?
  • Next by Date: Re: Numbers: 'make new' failing in various ways?
  • Previous by thread: Re: Numbers: 'make new' failing in various ways?
  • Next by thread: dictionary collision
  • Index(es):
    • Date
    • Thread