• 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: styled text to record, ok. But record to styled text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: styled text to record, ok. But record to styled text?


  • Subject: Re: styled text to record, ok. But record to styled text?
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 25 Jan 2004 12:27:38 +0000

Walter Ian Kaye wrote on Sat, 24 Jan 2004 21:36:10 -0800:

>At 01:57a +0000 01/25/2004, Nigel Garvey didst inscribe upon an
>electronic papyrus:
>
>> >I really do wish I could store the datatypes directly, without a list
>> >wrapper.
>>
>>I certainly agree as far as styled text is concerned. :-) Testing in
>>10.2.8, so far I've had no trouble with text, Unicode Text, lists,
>>records, dates, aliases, integers, or reals. But only in the case of text
>>is is the 'as' parameter optional when reading and the type class
>>specified has to be precisely the same as the class of the saved item.
>>'As number' doesn't work. So far, I've only found that styled text,
>>booleans, Wednesdays, and other items whose class is 'class' need to be
>>"enlisted". I haven't tried application-specific classes yet.
>
>Thanks for testing!
>I figure 'picture' oughta work raw/plain, and it's easy to get a PICT
>into a variable... but how would I test TIFF picture? It oughta work
>raw/plain, eh?

That's a bit beyond my ken. There are AS classes called 'picture' and
'TIFF picture'. Both can be accurately retrieved from a file by reading
'as picture' or 'as TIFF picture' (as relevant). The first four bytes
values of a 'picture' written to file appear to be 0, 0, 0, 0. The
equivalent values for a 'TIFF picture' are 77, 77, 0, 42. Beyond that I
don't know and Script Editor keeps seizing up when I get too ambitious
trying to find out. ;-)

NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Fun error messages (was Re: styled text to record, ...)
  • Next by Date: Re: [iCal] where is the note, what is the sequence?
  • Previous by thread: Re: styled text to record, ok. But record to styled text?
  • Next by thread: Re: Run with keychain scripting....
  • Index(es):
    • Date
    • Thread