• 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
Converting Scripts & Serving them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Fun with coercing to string (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: [OT]: Mailman availability
  • Next by Date: Re: Has the 5th business day of the month passed???
  • Previous by thread: Re: Fun with coercing to string
  • Next by thread: Re: Fun with coercing to string
  • Index(es):
    • Date
    • Thread