Converting Scripts & Serving them
Converting Scripts & Serving them
- Subject: Converting Scripts & Serving them
- From: Anthony Alireza Abud <email@hidden>
- Date: Wed, 21 Feb 2001 14:39:03 -0500
Quick question. After converting a compiled script, ridding it of the
resource fork, and adding a .osa, I can't get it to launch in IE 5.0 using
this compiled script as application. I set it up as a file helper but when
it tries to run the script that was downloaded it gives an error. When I
hit the edit button the script opens and the 'as script' is highlighted.
What's wrong. Scripting Addition? Wrong syntax? What? Just like all the
others thanks for any help.
on open myFile
set myFileRef to (open for access myFile)
set myScriptText to read myFileRef as script
close access myFileRef
try
tell myScriptText
activate
run
end tell
on error errmsg number errnum
display dialog "Error: " & errmsg ,
buttons "OK" default button "OK" giving up after 4
end try
end open