Re: Stupid, Stupid Text Features [Was: Can't set creator type]
Re: Stupid, Stupid Text Features [Was: Can't set creator type]
- Subject: Re: Stupid, Stupid Text Features [Was: Can't set creator type]
- From: Christopher Stone <email@hidden>
- Date: Tue, 24 Feb 2004 05:57:53 -0600
At 10:46 +0000 02/24/2004, Mr Tea wrought:
In the original thread, I reported a problem in Panther when using the
text returned from a dialog to set the creator type or file type of a
file. Basically, it can't be done without first performing a really
hairy coercion.
...
Aside from setting creator and file types, are there any other places
where this gotcha is likely to strike?
______________________________________________________________________
I'm with Nick on this one.
AppleScript's inability to directly coerce to plain text is quite beyond
belief. The fact that there are places where plain text is still
*required* makes the inability even less palatable.
"set theCode to <<class ktxt>> of (text returned of dRes) as record"
It's fortunate the above method exists. It is ridiculously
overcomplicated for the task, and as far as I know it isn't documented
anywhere except in some list-archives.
I posted about this a couple of months ago and had intended to raise a
ruckus. Unfortunately time went by, and I forgot to do so.
Thanks. Nick.
Chris
_______________________________________________
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.