|
-
Jan 12th, 2006, 05:03 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Using AppleScript in HTML
Is it possible to do something like "<script language='applescript'>" with a source off of it?
What I'm needing to do is run an applescript located on an Mac that an intranet has full access to. The script is basically writes some information to a file. I need this file to run every time specific pages are opened on the intranet i'm working on. Is this possible to do? Thanks in advance.
BTW - the page is running in an IE6 environment.
Last edited by RealisticGraphics; Jan 13th, 2006 at 02:27 PM.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Jan 12th, 2006, 05:21 PM
#2
Re: Using AppleScript in HTML
 Originally Posted by RealisticGraphics
Is it possible to do something like "<script language='applescript'>" with a source off of it?
I highly doubt it, since that would be a huge security risk and Macs don't have many options for allowing and not allowing things.
I don't know much about AppleScript so I am unsure how else to accomplish this. You could always make a widget.
 Originally Posted by RealisticGraphics
BTW - the page is running in an IE6 environment.
How? The latest version of IE for a Mac is version 5 AND it's not supported anymore/dead project.
-
Jan 12th, 2006, 06:34 PM
#3
Thread Starter
Fanatic Member
Re: Using AppleScript in HTML
Let me clarify. My client is running an intranet on windows server but it is not a web server (and it can't be for non-technical reasons I won't go into here). The client is running a MAC (OS9 I believe) that is connected to the network and is running FileMaker Pro. FileMaker has give the MAC the ability to run as a webserver.
The client has requested a hit counter for their intratnet but because the intranet itself has no server scripting ability I've been hard pressed to provide the feature. HTML files placed in the filemaker server directory run as do javascripts, but I do not have a clue how to write to the MAC using javascript as there is no filesystemobject.
I've thought about using a filemaker database if I can find a way to have the record submit itself but so far that route has been in vain.
Thanks again for any assistance.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Jan 13th, 2006, 01:18 AM
#4
Re: Using AppleScript in HTML
Ouch! I understand now. You have a FileMaker Pro server that can serve HTML pages off an OS 9 machine and you just need to count hits, correct? If so, that sucks you have to work with OS 9.
If you can't write to a file using JavaScript and you have no other scripting languages available, then you're pretty much out of luck.
You could setup another server with, maybe a simple PHP script or something, have the OS 9 machine forward all attempts to access index.html to the other server, count the hit, and re-direct back to another page. Very hacky but you're extremely limited. Not sure what else you could do.
Maybe someone else will have a suggestion.
-
Jan 13th, 2006, 08:12 AM
#5
Thread Starter
Fanatic Member
Re: Using AppleScript in HTML
I may be able to use a javascript to run server side on the MAC but I don't know enough about the OS9 system to do it.
Your suggestion is good except for the fact that's why I'm using the MAC in the first place, it is the only "webserver" I have available to me and the box isn't powerful enough to handle the 300+ simutanoues users for any consistent amount of time (otherwise I'd probably just migrate the entire intranet to it). Thanks for trying though.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Jan 13th, 2006, 02:27 PM
#6
Thread Starter
Fanatic Member
Re: Using AppleScript in HTML
FYI - Issue resolved. I finally figured out how to use CDML to communicate to a FMP database. So I'm just storing timestamps in individual records for each hit. Seems to work good. Thanks for your help.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|