trr@frame.com (Tim Ringwood) writes: In message <9601262207.AA29675@applepie> you write: >I need to call "X.EXE" from a MacPerl where X.EXE is unknown. > >I know I call an AppleScript and to a tell and X.EXE will run, but I have to >hardcode the path and program name in. One point that always seems to elude MacPerl users is that the argument to MacPerl'DoAppleScript is a normal string, and thus can be subject to string substitution: MacPerl::DoAppleScript(<<END_SCRIPT); tell application "$app" run like heck end END_SCRIPT Conversely, if you *don't* want string substitution, put single quotes around the delimiter: MacPerl::DoAppleScript(<<'END_SCRIPT'); tell application "$app" crawl like Word 6 end END_SCRIPT Matthias ----- Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html "Diamler-Benz reported that it will lose $4.2 billion in 1995. Billion. I wonder if the press and analysts will tell people not to buy a Mercedes." -- Guy Kawasaki