Le 23 mars 07 à 14:32:12, Luther Fuller a écrit :
…
When I replaced the "open file ..." line with this ...
open file (selfRef as text) & "Contents:Resources:My Doc.pdf"
the dreaded "cancel button" error message appeared.
I then replaced this with ...
(selfRef as text) & "Contents:Resources:My Doc.pdf"
open file the result
and the script again behaved correctly.
…
Have you tested:
open file ((selfRef as text) & "Contents:Resources:My Doc.pdf")
or
open file (get (selfRef as text) & "Contents:Resources:My Doc.pdf")
or
open ((selfRef as text) & "Contents:Resources:My Doc.pdf") as alias