• 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: Stupid, Stupid Text Features [Was: Can't set creator type]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Can't set creator type (From: Mr Tea <email@hidden>)
 >Re: Can't set creator type (From: Michelle Steiner <email@hidden>)
 >Stupid, Stupid Text Features [Was: Can't set creator type] (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Stupid, Stupid Text Features [Was: Can't set creator type]
  • Next by Date: vCard
  • Previous by thread: Re: Stupid, Stupid Text Features [Was: Can't set creator type]
  • Next by thread: Re: Stupid, Stupid Text Features [Was: Can't set creator type]
  • Index(es):
    • Date
    • Thread