Re: Remote AppleEvents to older OS
Re: Remote AppleEvents to older OS
- Subject: Re: Remote AppleEvents to older OS
- From: <email@hidden>
- Date: Wed, 22 Dec 2004 10:11:33 -0800
Doug -
Here is a post on the targeting issue I posted to the xtension user
list that may be of some help.
Mark Johannessen
----------------------------------------
Here's a quick rundown of how to target applications back and forth on
machines running OS 9.0 and OSX 10.2.8. You may want to widen the view
of this message to clean up text wrapping.
The setup I am using is:
PPC 6100, 72MB Ram, Crescendo 225MHz G3 card, OS 9.0
Used for:
- Speech recognition and speaking
- Zephir (ADB) control
- SoundJam MP
- Anything else I can offload from the XTension machine
PPC 9500, 272 MB Ram, 266 MHz Newer G3 card, OSX 10.2.8 (using
XPostFacto to get OSX to run on a 9500)
Used for (all OSX applications):
- X4X
- WeathermanX
- X2Web
- Apache (web interface for Audreys)
- ImageCaster (from EchoFX using their Interview Lite USB video
capture device) for web cams
- $29 ioGear 4x USB 2.0 card
Set up for OS 9.0:
1. In the FIle Sharing Control Panel, start program linking.
2. From the Finder, highlight the application you want to receive
events and Get Info. Go to Sharing and check the box "Allow remote
program linking". (In my case this was SoundJam and Zephir).
Set up for OSX 10.2.8:
1. Go to System Preferences/Sharing pane. Check the box for "Remote
Apple Events", check the box "Allow events from Mac OS 9", and be sure
the Start button is pressed. Click the Set Password button and input
the password to use when sending events to this machine. I kept my
password the same as the one for my user name. It may not make a
difference tough.
2. Close the Sharing pane and quit System Preferences.
To target an application running on the OS 9.0 machine from the OS
10.2.8 machine, here's an example script:
using terms from application "SoundJam"
-- Note: I changed the file name from SoundJam™ MP to simply
"SoundJam". The " ™ " is OPTION-2
-- Note: You must put a copy of SoundJam on the OSX 10.2.8 machine.
-- I just put this in the applications folder. When compiling, you
will be asked to locate this file.
tell application "SoundJam" of machine
"eppc://username:password(at)192.168.1.103"
-- Note: The username and password is the one you use on the OS 9.0
machine.
-- The first time you run this script you will be asked for the
user/password to access the OS 9.0 machine
-- Do that and check the "add to keychain" button. The dialog
shouldn't come up again next time the script is launched.
set myList to window "untitled playlist"
set myTrack to track 1 of myList
play mytrack
end tell
end using terms from
To target an application running on the OSX 10.2.8 machine from the OS
9. machine, here's an example script:
using terms from application "XTension"
-- Note: You need to put a copy of XTension (classic) on the OS 9.0
machine for this to compile
set myApp to Application "XTension OSX" of machine
"eppc://192.168.1.102"
-- Note: The name of the targeted application on an OSX machine (here,
'XTension OSX') is it's "process" name,
-- that is not necessarily the application's name as it appears from
the desktop.
-- Confirm the application name with 'ps -aux' from the terminal window
tell myApp
turnon "TV"
end tell
end using terms from
When you run this for the for time, it will ask for a password. Input
the password and check the box to remember in Keychain Access. You
should then get a dialog that presents a checkbox to allow this script
to be run in the future without the password dialog box reappearing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden