• 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: Help! My Applescript no longer works in Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Help! My Applescript no longer works in Panther (From: Michael McLaughlin <email@hidden>)

  • Prev by Date: Re: FileMaker crash on getting recordvalue with underscores?
  • Next by Date: Re: loaded script subroutines
  • Previous by thread: Re: Help! My Applescript no longer works in Panther
  • Next by thread: Re: Help! My Applescript no longer works in Panther
  • Index(es):
    • Date
    • Thread