CompuServe Thread

#Freehand 4.0/AEvents

4 messages in this thread
#163907From: Eric D. BergMar 14, 1994 3:37 PM
I'm trying to get FreeHand 4.0 to open and save a bunch of Adobe Illustrator files. It can open files of type EPS?, so I'm okay there, but when I try to issue an Open File command via AppleScript it tells me that FH4 doesn't understand the Open command, but when I send an Open command (class: aevt; ID: odoc) from QuicKeys 3.0 it works. Questions: how can I send an open command to FH4 in an AScript script; and/or 2) how can I get QuicKeys to tell me exactly what it is "saying" to Freehand? -Thanks! -Eric.
#163988From: Jackson SieMar 14, 1994 11:34 PM
Eric, I don't think that Freehand supports Apple Script, does it? I have Freehand 4.0 and I can't open a dictionary for it using Script Editor. However, you should be able to send the command to Freehand using: tell application "Freehand" <<event aevtodoc>> end tell Good luck, Jackson Sie
#164053From: Eric D. BergMar 15, 1994 11:07 AM
Thanks, Jackson. It didn't seem to work, though via QuicKeys 3.0 I can send a successful apple event to open a doc. I just don't know exactly what the syntax is since QK handles it. I know that FH4 supports the 4 basic AE's. -Eric.
#164145From: Donald OlsonMar 16, 1994 12:02 AM
Eric, In what form are you specifying the file to open? I'll bet that FH expects an alias or a list of aliases to files to open. In AS try: open alias "My:Path:To:Open" or open {alias "My:Path:To:Open", alias "My:Path:To:Open2"} Donald