Part 1 of 2:
This is Perl-related only in that I'm trying to do it from a Perl script; it occurred to me that someone here might have seen how this is done. (also posted on the applescript list at lists.apple.com...) -------- say I take an app and make two copies of it on the HD in distinct folders. I'd like to drive each copy with unique commands from an AppleScript, possibly running both at the same time. In this case the app is CodeWarrior and I want to be able to run multiple instances on a dual processor machine. Could swear I have seen the syntax for doing this but searching the list archives and the Apple web page has not found it yet. Is it possible? -------- The best result would be if I could explicitly name the path to each app, launch them, get the PSN or PID for each instance, then be able to use those PIDs later on to selectively control one instance or the other, or both. I'm trying to avoid hacking the creator code of the apps in question which is how one app is usually distinguished from another in AppleScript AFAICT. Part 2 of 2: I went through Apple's directions for installing Perl 5.8.0 and had no problems. (http://developer.apple.com/internet/macosx/perl.html) Then I went on to install Mac::AppleScript and Mac::AppleScript::Glue, they seem OK also. This Perl script, while it runs and does seem to create the desired effect of controlling Finder, prints a warning on the command line when it runs. I don't even have my Perl "green belt" yet so I am wondering if this is serious or if there is some adjustment I should make to the script, to placate it. Script ("as1.pl"): #!/usr/bin/perl use Mac::AppleScript::Glue; my $finder = new Mac::AppleScript::Glue::Application('Finder'); $finder->insertion_location->open; Message: [localhost:~] xbuilder% ./as1.pl v-string in use/require non-portable at /Library/Perl/Mac/AppleScript/Glue.pm line 234. What's a v-string ? (ducks..) Rob