MACSCRPT Archives

November 2012

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nigel Garvey <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 14 Nov 2012 09:51:42 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Bill Steele wrote on Tue, 13 Nov 2012 21:15:53 +0000:

>set keywords to {"foo","bar","Fred"}
>set thePieces to splittext bigFile using "whatever"
>repeat with onePiece in thePieces
>	repeat with oneWord in keywords
>		if onePiece contains oneWord
>			(do some stuff with it)
>		end if
>	end repeat
>end repeat
>
>This worked fine until I upgraded to Mountain Lion, and then it started
to
>hang up about halfway through --at different places at different times,
>with the same file.
>
>To find out what was happening I put in some display dialogs,and that
fixed
>it.  Replaced the dialogs with one-second delays,and that works too.
Seems
>Applescript Editor needs to stop and think about some things, or maybe
>clean out some memory when it's doing arrays.
>
>Any ideas what's happening?

Sounds like a synchronisation problem. Does "some stuff" include any GUI
scripting or clipboard work?

NG

ATOM RSS1 RSS2