Dave Cragg 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.
I think I don't quite follow you, because I thought that when you send a
"miscdosc" message, a script is executed. At least so acts MC. Doesn't
"miscdosc" stand for "Miscellaneous: Do Script"?

> 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.
That's true, but I really believe it can be done like this, I must be
missing something somewhere. Are there some AppleScript/ Event guru's on the
list?

> Cheers
> Dave Cragg
Thanks for your suggestions,
Sjoerd


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.

Reply via email to