At 12:05 PM +0100 28/2/01, Sjoerd Op 't Land wrote:
>[EMAIL PROTECTED] wrote/ schreef:
>
>> tell application "Finder"
>> open application file id "CARO"
>> end tell
>>
>> -- I tested it. It works marvelously. I hope this helps ;-)
>
>OK, it works fine here from within the scriptmaker. Now I want to execute
>this from within MetaCard. I tried:
>
> send "open application file id" && quote & "CARO" & quote to program
>"Finder"
>
>With the following result:
>
> Got error -1708 when sending Apple event
>
>I also tried just to send "beep", or also with the "tell" handler around it,
>but it all didn't work.
>
>Is it my computer or my scripting? I know this all can be done using the
>external collection, but I want to do it without the collection. Is that
>possible and how?
Without the external collection, it may not be easy. I haven't tried
the above string with "send", but generally the Finder won't accept
text strings for file references, and Metacard can only send text
strings.
If you really need to do this without the externals collection, you
could compile a small AppleScript as a standalone application that
reads a file name from an external text file, and then opens that
file with Acrobat. From within your Metacard application, you could
write the file path of the PDF file to the text file, and then launch
the AppleScript application. Not very elegant, but it should work.
Cheers
Dave Cragg
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.