Passing information from OS X to OS 9 via AppleScript?
Passing information from OS X to OS 9 via AppleScript?
- Subject: Passing information from OS X to OS 9 via AppleScript?
- From: Bruce Carter <email@hidden>
- Date: Fri, 26 Sep 2003 21:47:28 -0500
Greetings all,
We're using Pharos Uniprint to control printing in the student labs.
Uniprint uses the login name in OS X, and the owner name from the File
Sharing control panel in OS 9 to tell who the job came from so that
they can print it from the release stations. We've just recently
discovered that OS X apparently does not pass the login name to OS 9
(at least as far as we can tell). Therefore, the owner name in OS 9
never gets set. Therefore, Uniprint doesn't know what to do with the
jobs from Classic. So, I think what we need is an AppleScript to run
as a Startup Item (not a StartupItems item) when Classic starts up that
will set the owner name. The question is, how can I get the OS X login
name and feed it through to set the owner name in OS 9?
I've tried a few things with telling the File Sharing control panel,
but it keeps crashing, and then AppleScript reports an "invalid
connection" error. Like:
tell application "File Sharing"
set ownerName to owner name
display dialog ownerName as string
ignoring application responses
if ownerName is "bruce" then
+event ownnsetd; "bcarter"
else
+event ownnsetd; "bruce"
end if
end ignoring
set ownerName to owner name
display dialog ownerName as string
end tell
I've also tried making the script in the OS 9 and OS X script editors.
Any assistance would be greatly appreciated.
--
Bruce Carter, ACTC, MacCSE, MCP
http://www.nd.edu/~bcarter/
Senior Systems Engineer
mailto:email@hidden
Information Technology Center 359 AIM:bcarteratnd
University of Notre Dame +1 574 631 9191 Voice
Notre Dame, IN 46556-0539 +1 574 631 8201 FAX
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.