Re: script will error when nothing in a watched folder
Re: script will error when nothing in a watched folder
- Subject: Re: script will error when nothing in a watched folder
- From: "Chris Banford" <email@hidden>
- Date: Wed, 07 Mar 2001 17:49:44 +0100
>
tell application "Acrobat 4.0"
>
activate
>
open theFile as alias <----alias is the error highlighted
>
end tell
Just stick in a 'try' block:
tell application "Acrobat 4.0"
activate
try
open theFile as alias <----alias is the error highlighted
on error errMsg
-- you can do your own error handling here (optional)
end try
end tell
This should cause the script to 'skip' the error you're getting.
-Chris
------------------
Chris Banford
email@hidden
bSoftware
Zermatt Switzerland
------------------