Re: How to "Tell" a varible name
Re: How to "Tell" a varible name
- Subject: Re: How to "Tell" a varible name
- From: Emmanuel <email@hidden>
- Date: Thu, 8 Feb 2001 11:57:45 +0100
At 0:23 +0100 8/02/01, SeaSoft Systems wrote:
>
=======================================
>
set realmslist to "some text"
>
tell application "Finder"
>
set WebStar to (the first process whose creator type is "WWW") as text
>
end tell
>
>
tell application WebStar
>
try
>
set <<class Prlm>> to realmslist
>
on error
>
end try
>
end tell
>
=======================================
>
>
Now the snippet will not compile but gives an error message:
>
>
>>> Can't set <<class Prlm>> to realmslist
>
Access not allowed.
This is a minor bug of AppleScript (which is documented somewhere in
Smile's help I think).
The problem arises with properties of the application. You've got to write
something like "its" before such a property. (Sorry not to be more
specific).
Emmanuel