EOF error on one user's Mac
EOF error on one user's Mac
- Subject: EOF error on one user's Mac
- From: "Ethan Rips" <email@hidden>
- Date: Fri, 27 Feb 2004 10:23:03 -0500
- Priority: normal
[Possibly OT & LENGTH WARNING]
Hello--
I have 5 users running a script that cleans up tab-delimited text in BBEdit.
The script works on all but one machine (where it throws an EOF error)
running OS 9.2.1 or 9.0.4 with BBEdit 6.5.2, and on my machine with OS X
10.2.8 & BBEdit 7.1.2. It seems logical that the problem resides with the
one machine, not the script, but I have no idea how to (1) verify that, (2)
discover what the problem really is, and (3) figure out how to fix the
problem. (I can check my code<as I did when I wrote the script<in Script
Debugger on OS X, but I can't see any practical way to step through the code
in my user's environment with Script Editor.
Has anyone got any suggestions on how to troubleshoot this?
(By the way, the script is 28K.)
TIA,
Ethan
The following code is abbreviated to spare you a long list of search &
replace properties:
--set search criteria as properties
property quotes : "\""
[SNIP]
--set replacement values for property list
property r_delete : ""
[SNIP]
--set paired values for replacement via function
set propList to {{quotes, r_delete}, {squiggles, r_delete}[SNIP]}
--set counter to loop thru propList
set i to item 1 of propList
repeat with i from 1 to count of propList
set a to item 1 of (item i of propList)
set b to item 2 of (item i of propList)
cleanFinancials(a, b)
end repeat
beep
--pass each value pair to handler
on cleanFinancials(x, y)
set oldChars to x
set newChars to y
set srchRslt to {}
tell window 1 of application "BBEdit"
--set grep & literal search modes
set GrepS_options to {search mode:grep, starting at top:true, wrap
around:false, backwards:false, case sensitive:true, match words:true, extend
selection:false}
select insertion point before character 1
--test for presence of search item first; if present, replace it
set srchRslt to (find x options GrepS_options with selecting match)
if found of srchRslt then
tell application "BBEdit"
replace x using y searching in text 1 of text window 1
options GrepS_options
end tell
end if
end tell
end cleanFinancials
The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized.
If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.(A)
_______________________________________________
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.