• 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
Box overflows works with script, not with Folder action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: 'original item' broken
  • Next by Date: Re: make command
  • Previous by thread: Re: 'original item' broken
  • Index(es):
    • Date
    • Thread