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: Michelle Steiner <email@hidden>
- Date: Wed, 7 Mar 2001 08:37:08 -0800
On 3/7/01 8:14 AM, Keith Bailey <email@hidden> wrote:
>
it errors at:
>
>
tell application "Acrobat 4.0"
>
activate
>
open theFile as alias <----alias is the error highlighted
>
end tell
>
>
the error reads:
>
>
Can't make {} into a alias.
>
>
what should I do??
>
any help will be appreciated.
If theFile is not {} then open theFile as alias
However, it appears that you have a list there, rather than a file
reference, so I would think that it would error all the time (except,
perhaps, if there is only one item in the folder, in which case, it might
resolve it correctly). Can you provide more of the script?
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------