develooper Front page | perl.macosx | Postings from January 2002

Macperl -> Perl

Thread Next
CardConnection Response
January 18, 2002 05:18
Macperl -> Perl
Message ID:
I have a macperl script which has an applescript embedded in it and uses 
MacPerl::DoAppleScript to execute it (see below). How can I accomplish the 
same thing in Perl under OS X?

Code snippet:

$script = <<EOS;
set theCommand to {"$gsCommands1$newFileLoc $gsCommands2 $gsCommands3"} as 
tell application "RackMac1:ghostscript:MacGS"
	gs theCommand
end tell

$result = MacPerl::DoAppleScript($script) or die("Could not run script\n");

MSN Photos is the easiest way to share and print your photos:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About