Re: Safari windows
Re: Safari windows
- Subject: Re: Safari windows
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 09 Jan 2004 12:08:06 -0800
On 1/9/04 10:55 AM, "Walter Ian Kaye" <email@hidden> wrote:
>
At 09:29a -0800 01/09/2004, Paul Berkowitz didst inscribe upon an
>
electronic papyrus:
>
>
> On 1/9/04 5:13 AM, "Walter Ian Kaye" <email@hidden> wrote:
>
>
>
>>>> Could someone with 10.3.2 and Safari 1.1.1 give it a try?
>
>>>
>
>>> Sure. The problem is that you're trying to set bounds using _text_
>
>>> strings as the bounds instead of integers (if you run just the first
>
>>> two lines of yours script and look at the results you'll see the
>
>>> problem).
>
>>
>
>> But it's *not* a problem on my machine. Works just as I would expect.
>
>>
>
>>> Safari doesn't coerce them automatically.
>
>>
>
>> Odd. 1.0 does. I'd say it's a bug in 1.1.1.
>
>
>
> How can you call the lack of ability to add strings as if they were numbers
>
> a bug? On the contrary - I would say that a bug in v1.0 has been _fixed_ if
>
> that's really the case. Trying to add strings _should_ produce an error. Or
>
> possibly you have some osax doing the coercion for you in the background.
>
>
If you look at my code again, you will see that I am not adding strings.
>
I am doing this: 0 + "1". Number plus string. That has always worked
>
in AppleScript, and has been referenced on these mailing lists for
>
many years.
Ah, OK.
>
You have probably even used it yourself, don'tcha think?
Maybe, although more often than not I coerce explicitly. It certainly works
still outside of any tell block. So you're saying it doesn't work inside a
Safari tell block? Hmmm. This works fine here:
tell application "Safari"
0 + "1"
end tell
--> 1
I'll have to re-read the thread and see what I'm missing. (My Safari is
v1.1.1)
--
Paul Berkowitz
_______________________________________________
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.