In article <1ihuiga.1r2wb0cuqrx0sN%fergus@twig.me.uk>,
fergus RemoveThis @twig.me.uk (Fergus McMenemie) wrote:
> Anybody able to tell me where I am going wrong in the following:-
>
(snip)
>
> I cannot get the document to open at all using applescript. The document
> GPEnvelope10.cwk is a plain AW document and opens fine in AW. I am
> running under Mac OS X 10.5.2 leopard.
What happens when you run it with the try block disabled (commented
out)?
It's always a good idea to disable try blocks when you are debugging
AppleScripts, because try blocks cause AppleScript not to display error
messages it would otherwise display.
Note that you can write try blocks such that they do display error
messages when errors occur, like so:
try
..
..
..
on error msg number num
display alert "Script Error" message msg & ¬
return & return & ¬
"Error code: " & num ¬
buttons "OK" default button 1 as critical
end try
But, as I said, it's better to disable the try block altogether when you
are debugging script problems.
--
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.
JR