• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Computer name via CGI script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Computer name via CGI script


  • Subject: Re: Computer name via CGI script
  • From: email@hidden
  • Date: Tue, 12 Nov 2002 01:08:11 EST

Tim,

Short answer - no. That sort of information is provided to CGI scripts on a
need-to-know basis. The fact that you can do it on Windows is a minor
security hole, IMHO.

The closest you can get is the IP address of the client, which is passed as
the

from address client_address [option-return]

parameter of the handle CGI Request handler. See

http://www.linkedresources.com/teach/applescript/writingCGIs.shtml

for more info if you are new to Applescript CGIs. You could build a little
paired list of data points to let the server convert the IP address to a
computer name. Of course, this assume static addresses.

I assume you want this automatic and seamless to the user and that is why you
are not using a username/password approach.

HTH.

Jeff Baumann
jwbaumann(shift-2)aol(dot)com
www.linkedresources.com


In a message dated 11/11/02 1:53:49 PM, Timothy K. Wilkinson writes:

>We are rolling out a print authorization system here and it involves users
>releasing print jobs via a web page. The URL to that page must include the
>name of the printer and the name of their workstation. Currently this is
>done via an AppleScript on each machine. This means if we make any changes
>we need to redo all the scripts on each machine.
>
>We'd like to have everyone go to one central page and have the server sort
>things out. The big sticking point is how to get the name of the
>workstation through the browser. I've found a way to do it using JavaScript
>and Windows Scripting Host. Does anyone know of a way to get the machine
>name of a Mac through an AppleScript CGI or similar web-based methods?
_______________________________________________
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.

  • Prev by Date: Considering/Ignoring case
  • Next by Date: Looking for AS Studio users/programmers in Austin, TX.
  • Previous by thread: Computer name via CGI script
  • Next by thread: Position desktop icons in OS X?
  • Index(es):
    • Date
    • Thread