• 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: Safari windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari windows


  • Subject: Re: Safari windows
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 9 Jan 2004 10:55:59 -0800

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.
You have probably even used it yourself, don'tcha think?


-boo
_______________________________________________
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.

  • Follow-Ups:
    • Re: Safari windows
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Safari windows (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: parsing Unix date
  • Next by Date: Re: parsing Unix date
  • Previous by thread: Re: Safari windows
  • Next by thread: Re: Safari windows
  • Index(es):
    • Date
    • Thread