• 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: preflighting a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preflighting a file


  • Subject: Re: preflighting a file
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 19 Feb 2002 12:26:13 -0500

At 7:56 PM +1100 2/19/02, Shane Stanley wrote:
The "is in" comparison fails with strings greater than 32K. Run this:

set n to 10
set x to "abcdefghijklmnop"
repeat n times
set x to x & x
end repeat
{count of x, "a" is in x}

then change n to 11 and run it again.

Yes?

--
Shane Stanley, email@hidden
_______________________________________________

Very nice!
However:

set n to 11
set x to "abcdefghijklmnop"
repeat n times
set y to x & x
set x to y
end repeat
set l to offset of "p" in x
if x contains ("p") then beep -- no beep
l --16


and...

set n to 11
set x to "abcdefghijklmnop"
repeat n times
set y to x & x
set x to y
end repeat
if x contains (y) then beep -- beeps

So there must be a ratio somewhere in there!

This does not take away the beauty of the above example!






--
Deivy Petrescu
http://www.dicas.com
Tips for Mac
dicas para Mac
_______________________________________________
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.

References: 
 >Re: preflighting a file (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: adding to a list selected from a list of lists
  • Next by Date: Re: Scripting mail.app
  • Previous by thread: Re: preflighting a file
  • Next by thread: Re: preflighting a file
  • Index(es):
    • Date
    • Thread