After much (like, really, really a lot of) trial and error, I managed to install a third party client on my OS 10.4.5 17" iMac G4 which monitors a Windows XP service being provided on a Windows XP machine on our network and create scripts to automate regular tasks via these clients. Two client programs, actually. One monitors a folder for files with a certain extension (.nwp, for example) and sends them to the other client program, the actual System Manager. I have made Applescript applications to respond the approximately five messages that the System Manager application spits out. My scripting applications come to life in response, tell a user what to do, and when the state that caused the message to appear is gone, the applications come back to life and business returns to normal. I have an interface that I’m creating to send jobs and receive feedback. The machine I’m working on is a 17" 1.83GHZ Intel Core Duo iMac, Applescript 1.10.4.
I have not been able to perfect the process. These are the places where things aren’t working:
- I need to be able to activate the script applications from a remote machine. I’m assuming this would be done via Remote Apple Events. I can get the iMac G4 to beep using
tell the application "Finder" of machine "eppc://ThisMachine.local" to beep
but have been unsuccessful to make anything else happen. The iMac has its firewall off and Remote Apple Events turned on. I have every reason to believe all the appropriate boxes in System Preferences → Sharing are checked on both Macs in question. I think not being able to launch a remote application may be a Rosetta issue, but I am not sure. Can someone show me a script that just launches an app, say TextEdit.app on a machine named ThisMachine.local? It seems like it should be simple, but apparently I need help. I should mention that I’m not dead set on Apple Events. If someone can show me how to launch an app on a remote machine via Terminal (say TextEdit.app on ThisMachine.local or IP 192.168.1.XXX), I’ll be their best friend.
-
The client software isn’t native OS X. I think it’s a UNIX app, but don’t know for sure. I had to resort to GUI scripting for one aspect of my scripts. I have two split groups with a splitter bar in between that I need to adjust. I have been unable to do that even with GUI scripting. Is this possible?
-
I need to click on static text. The static text is in a scroll area, which is only present if a static text from a different area is clicked first. The static text that needs to be clicked on has the following attributes:
<AXApplication: “System Manager”>
<AXWindow: “System Manager”>
Attributes:
AXParent: “”
AXRole: “AXStaticText”
AXRoleDescription: “text”
AXHelp: “(null)”
AXWindow: “<AXWindow: “System Manager”>”
AXTopLevelUIElement: “<AXWindow: “System Manager”>”
AXEnabled: “1”
AXSize: “w=81 h=15”
AXPosition: “x=337 y=439”
AXFocused (W): “0”
AXValue: “Server Orders”
AXSelectedText (W): “(null)”
AXSelectedTextRange (W): “(null)”
AXNumberOfCharacters: “84”
AXVisibleCharacterRange: “(null)”
AXInsertionPointLineNumber: “(null)”
The value looks to be written with HTML tags. I have poked and pried with UI Element Inspector, but have been unable to open anything below this static text area without using GUI scripting. So, is this impossible, or just difficult?
Any help at all will be greatly appreciated!
Thanks ahead of time!
Model: 17" 1.83GHZ Intel Core Duo iMac
AppleScript: 1.10.4
Browser: Safari 417.8
Operating System: Mac OS X (10.4)