• 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: BUG? Constants to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG? Constants to string


  • Subject: Re: BUG? Constants to string
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 04 Jan 2002 13:46:36 -0800

On 1/4/02 1:30 PM, I wrote:

> If I run this script from Script Editor:
>
> tell application "Finder"
> set p to owner privileges of alias "OS X
> HD:Users:berkowit:Desktop:Text File.txt" set txt to p as string
>
> end tell
>
> display dialog txt
>
> --> read write
>
>
> If I save it as an application, I get
>
> --> <<constant ****rdwr>>
>
> Similarly if I write it to a text file: "read write" when run in any
> Script Editor, <<constant ****rdwr>> when run from an application.
>

If you include the display dialog inside the Finder tell block, you get the
same disparity (you just have to click into the Finder first to see the
dialog).

The disparity does not exist for AppleScript constants such as

display dialog (kilograms as string)
--> kilograms

Perhaps it requires an implemented coercion to string? But then why do the
application constants such as 'read write' (Finder) and 'normal' (Entourage)
display in English in Script Editor in OS 10.1.2, which can't be blamed on
an osax coercion?


--
Paul Berkowitz


  • Prev by Date: BUG? Constants to string
  • Next by Date: Re: BUG? Constants to string
  • Previous by thread: Re: BUG? Constants to string
  • Next by thread: Re: applescript-users digest, Vol 2 #1456 - 16 msgs
  • Index(es):
    • Date
    • Thread