Re: Acrobat 6 "do script" problem...
Re: Acrobat 6 "do script" problem...
- Subject: Re: Acrobat 6 "do script" problem...
- From: Nigel Smith <email@hidden>
- Date: Wed, 12 Nov 2003 11:52:39 +0000
On 11/11/03 19:11, "Hanaan Rosenthal" <email@hidden> wrote:
>
When you ask for posix path of the result you get is in styled text, and
>
therefore the entire string is in styled text.
>
Acrobat JAVASCRIPTT seems to choke on that.
And that did the trick...
One day I will remember that casting Unicode text to a string gives you
styled text. I thought I had checked but, of course:
log class of POSIX path of ":" = class of "/"
-->false
log class of (POSIX path of ":" as string) = class of "/"
-->true
Is there any way to check if a string is plain or styled, short of trying to
extract the the text portion of (the string as a record) and, if that fails,
it was plain text after all?
Thanks,
Nigel
_______________________________________________
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.