• 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: weird clipboard behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird clipboard behaviour


  • Subject: Re: weird clipboard behaviour
  • From: Andy Wylie <email@hidden>
  • Date: Thu, 15 Nov 2001 06:47:01 +1300

on 15/11/01 5:26 AM, Jon Pugh at email@hidden wrote:

> At 8:42 AM -0500 11/14/2001, Dave Johnson wrote:
>> I found this last night and thought I was just sleep deprived. But it is
>> still weird this morning and I've duplicated this on two different machines
>> and in OS 9.1 and 10.1.
>>
>> The script:
>>
>> set test_string to "abcdefghijklmne"
>>
>> display dialog (offset of "e" in test_string)
>>
>> set the clipboard to test_string
>>
>> set test_string2 to the clipboard
>>
>> display dialog (offset of "e" in test_string2)
>>
>> display dialog test_string2
>>
>>
>> The first 'offset of "e"' gives me 5 as I would expect. However after a trip
>> through the clipboard offset can no longer find "e". It returns 0. I've
>> tried many different variations (copy vs set) added "as string" etc. but it
>> comes out the same. Any ideas?
>
> It looks like a bug in the offset command, although I don't have any idea what
> could be causing it. It looks like the clipboard is definitely involved as
> removing it (i.e. copy the string instead) makes things work, but I don't see
> it having any obvious effect. The strings are the same, with the same length
> and no obvious junk.
>
> So, I see the behavior too, and have no idea what's happening.
>

I recall encountering this weirdness...

set test_string2 to (the clipboard) as string

fails while...

set test_string2 to "" & (the clipboard)

works
_____________________________ Andy


  • Follow-Ups:
    • Re: weird clipboard behaviour
      • From: Jon Pugh <email@hidden>
References: 
 >Re: weird clipboard behaviour (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: using tell with proc. serial numb. in OS X
  • Next by Date: Re: weird clipboard behaviour
  • Previous by thread: Re: weird clipboard behaviour
  • Next by thread: Re: weird clipboard behaviour
  • Index(es):
    • Date
    • Thread