My AppleScript applet has a user guide in its resources folder. The guide is in PDF format. To show the guide, my applet has this code:
set path_to_Applet_alias to path to me as alias
set help_file to (path to resource "Help.pdf" in bundle path_to_Applet_alias) as string
tell application "Finder"
open file help_file
end tell
That code works. The applet is localised for a few languages. When I set the language in my applet to another language, e.g. French, that code punches an error:
"The application "Preview" can't be opened" -1703
According to Apple, the "-1703" error means "The wrong data type was detected". But, the data type hasn't changed.
I suspect something is going on with the translation but, I can't figure out what.
Any ideas ?