Re: BUG? Constants to string
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