Box overflows works with script, not with Folder action
Box overflows works with script, not with Folder action
- Subject: Box overflows works with script, not with Folder action
- From: Steve Kump <email@hidden>
- Date: Thu, 31 May 2001 22:17:16 -0500
Hi List,
Working with the box overflows to see if my script needs to reduce the size
of the text in a particular box.
tell quark
tell document 1
tell text box "test"
if box overflows then
set textsize to size of story 1 as real
set textsize to (textsize - 0.5)
set size of story 1 to textsize
do updates
end if
end tell
end tell
end tell
this works fine when run as a standalone script, or as part of another
script. However, when run as a folder action, it fails at the "if box
overflows" line and returns -1700, "Quark can't make some data into the
expected type.
What could be causing this?
thanks!
Steve Kump