I have just spent a couple of hours trying to make a script work correctly. It seems the line ...
set linkFileAlias to (alias file linkName of mailboxAlias) as alias
was always throwing an error. Every @$#! time. But, I was sure that the alias file existed because the previous line tested its existence. And I checked the code that created the alias file and found no problem. Finally, I dug down to the folder containing the alias file, found it there and confirmed that it pointed to the right place.
Tried the script again ... no error.
Taking this as a hint, I added a new line after 'make new ...' ...
make new alias file at mailboxFolder to destFolder with properties {name:linkName, comment:linkComment} update the result -- this seems to be necessary
I no longer get the error!
Using 'update ...' was never a problem in Tiger or Leopard, in fact, there was a time when I did not believe it worked. And not using it did not seem to cause a problem.
In Snow Leopard I am finding that I have had to include an 'update ...' line in various places or run the risk of getting an error. What changed?
|