Re: When a string is not a string for Palm Desktop
Re: When a string is not a string for Palm Desktop
- Subject: Re: When a string is not a string for Palm Desktop
- From: Richard Morton <email@hidden>
- Date: Fri, 2 May 2003 18:07:31 +1000
On Friday, May 2, 2003, at 05:28 PM, Shane Stanley wrote:
On 2/5/03 2:22 PM +1000, Richard Morton, email@hidden, wrote:
I find it frustrating that I can't get AS to give me a plain old
string when I
ask for one, but maybe I'm missing something there.
It's plain old text that's missing something -- the encoding...
The bottom line is that you're losing information when you convert
these
strings to plain old text, and sometimes that can bite you. Of course,
sometimes you have no choice because of what apps require, but I can
see why
Apple's discouraging it.
As always, it's these intermediate states that bring grief. The same
variable that was causing the new PD to spit the dummy has been causing
problems with AppleWorks too - I was passing it to AW like this:
save front document in newCCLPathStr
Which had been working for a long time, but mysteriously stopped when I
migrated these scripts to X. I couldn't work it out for ages because
of the "string that isn't plain text" issue. It seemed to be the right
class & I couldn't duplicate the problem outside the scripts. A real
hair tearer.
Hopefully Unicode will eventually ride to the rescue...
I accept that we're going this way, but I still think AS should provide
descriptive string class names & provide coercion between them where
possible. I think Chris N has said it all should be transparent, which
is great when it works, but it's not all working. I've had the same
sort of trouble with literal returns in scripts that put text in AW -
they aren't recognised as returns anymore.
At this point I'm also still relying on being able to put plain strings
into AW docs, which allows them to take on the style of the doc.
AFAIK, there is no vanilla way to style text and it's much simpler to
know that the document itself will do it - having to code document text
styles into a script would be a maintenance problem for me.
Cheers,
Layz E Bones
-- whatever happened to the good old days, when men were men, small
green furry creatures from Jaglan Beta 5 were small green furry
creatures from Jaglan Beta 5 and text was text?
_______________________________________________
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.