• 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: Raw Data or ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Raw Data or ?


  • Subject: Re: Raw Data or ?
  • From: Jay Young <email@hidden>
  • Date: Sun, 21 Apr 2002 19:31:54 -0500

Well, it looks like I'm making this too difficult for myself! Apparently, OS X knows what to change Netscape to if the name changes. And if I set it up to Tell application "Netscape 6" , but I open up Netscape 4.7 (and Netscape 6.1 is closed) in Classic and then double click on the applet, then it will work with Netscape 4.7. And I drug the script over to a machine with OS 9.1 too, changed the names of the applications and ran the script. It ran just fine over there too. But if I save the script as a run-only, Mac OSX Applet or a Classic Applet on OS 9.1, and then drag it over to OS X then it won't run at all. When I double click on it, it acts like it's going to run but does nothing. Same goes for when I created the script on OS X and sent it to a friend as an application, it wouldn't run on his OS X machine either. It would act like it was opening, but it wouldn't do anything. But when he opened it in Script Editor and saved it, then it worked. Let me know if anyone has any further thoughts with this. Thanks!

Here's the code:

-------------------------------------------------------------
on run
set Choic to display dialog "Which Browser would you like to use:" buttons {"Netscape", "Internet Explorer"}
if button returned of Choic is "Netscape" then
try
tell application "Netscape Communicator"
activate
OpenURL "http://www.yahoo.com";
end tell
on error
set NetApp to choose application with prompt "Please Choose Netscape"
tell application "Finder" to activate NetApp
tell application "Netscape Communicator"
OpenURL "http://www.yahoo.com";
end tell
end try

else
try
tell application "Internet Explorer"
Activate
OpenURL "http://www.yahoo.com";
end tell
on error
set IEApp to choose application with prompt "Please Choose Internet Explorer"
tell application "Finder" to activate IEApp
tell application "Internet Explorer"
OpenURL "http://www.yahoo.com";
end tell
end try
end if
end run
-------------------------------------------------------------
Jay
_______________________________________________
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: 
 >Raw Data or ? (From: Jay Young <email@hidden>)

  • Prev by Date: Read RTF in OS X?
  • Next by Date: Re: Apple: Please deal with basics
  • Previous by thread: Raw Data or ?
  • Next by thread: Re: Raw Data or ?
  • Index(es):
    • Date
    • Thread