Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Simpier version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Simpier version
Authored by: paulrob on Feb 11, '04 03:31:40PM
If you use type "text" your paste size will be limited as text can't handle an unlimited length of characters. But type "string" has no length restriction, and as a bonus strips the formatting. Like so:-

set the clipboard to (the clipboard as string)


[ # ]
Simpier version
Authored by: cfoster on Feb 11, '04 04:13:19PM

This does not work. "As String" keeps style information.

In your testing, you must have been copying from something that didn't include style, or pasting to something that doesn't accept it.



[ # ]
Simpier version
Authored by: paulrob on Feb 12, '04 02:06:26PM

Hmm! Curses! You're 99% right.

Actually "as string" does strip all fonts and styles. See p.85 of Applescript Language Guide.pdf. Unfortunately, it then applies a Geneva font to the text! But WHY???

As I was pasting to documents written with a Geneva font I thought I'd been successful.



[ # ]