Re: Help! My Applescript no longer works in Panther
Re: Help! My Applescript no longer works in Panther
- Subject: Re: Help! My Applescript no longer works in Panther
- From: Shane Stanley <email@hidden>
- Date: Wed, 14 Jan 2004 08:58:11 +1100
On Jan 14, 2004, at 3:18 AM, Michael McLaughlin wrote:
Ever since upgrading from Jaguar to Panther, the following script
(drag-and-drop application) no longer works. It appears that TEXT
cannot be converted to file types or creator types. Is there some
missing cast not heretofore required?
Display dialog is now returning Unicode text, and there's no direct way
to coerce it to straight ASCII, which is what's required for
types/creators. You have to use one of the variations on:
set someText to <<class ktxt>> of (someText as record)
where << and >> are chevrons.
The more places this has to be done, the more any argument for not
building in such a coercion looks silly.
--
Shane Stanley <email@hidden>
_______________________________________________
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.