Re: How to repeat forever
Re: How to repeat forever
- Subject: Re: How to repeat forever
- From: Walter Ian Kaye <email@hidden>
- Date: Sun, 14 Dec 2003 20:56:26 -0800
At 11:21p -0500 12/14/2003, Jim Witte didst inscribe upon an
electronic papyrus:
Hi,
How do I make a loop repeat forever, until I exit it? Here's my
script:
set i to 1
repeat 5 times
It's easy -- just eliminate the '5 times' qualifier. :-)
set celladdr to "R" & i & "C" & 1
set i to i + 1 -- add 1 to i
tell application "Excel"
Select Range celladdr
CopyObject Selection
set tname to the clipboard
end tell
display dialog tname
--if tname is empty then exit repeat
if (tname is "") then exit repeat
end repeat
(You can tell I come from the Hypertalk tradition --
Well, I was just curious about your code for Excel... it looks pointless...
BTW, I deduce that you pasted styled text into Mail, causing it to
send HTML which Apple's listserv thankfully stripped out (that's the
one thing that listserv software does right!). You really should
unstyle before pasting into a message. I don't know whether Mail has
a keystroke to do it automatically like Eudora does, but you could
unstyle the clipboard via AppleScript...
I'm annoyed that
AS isn't *exactly* like HC - Apple *does* have the code after all, and
I'd bet there are a heck of a lot of HC scripters still out there..)
I assume Apple isn't going to release information on how to write a
new dialect, so that a "Hypertalk" (or Transcript, for Revolution fans)
dialect could be written? (Myself, I think a Scheme dialect would be
cool, but..)
Apple gave up on dialects a long time ago. It's over.
-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.