• 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
NSReceiverEvalutationScriptError: 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSReceiverEvalutationScriptError: 4


  • Subject: NSReceiverEvalutationScriptError: 4
  • From: Chet Goetz <email@hidden>
  • Date: Fri, 19 Sep 2003 08:40:55 -0500

i just installed the GUI Scripting Beta, but when i try to run scripts
that call the System Events, I receive the error

[demime 0.98b removed an attachment of type application/pdf which had a name of error.pdf]
i'm just trying to make a simple script that opens my favorite 7 web
sites in separate tabs in the same window. currently i'm using two
scripts to experiment, but i think i'm stuck.

here's the script that opens the sites

[Safari Coffee]
--
tell application "Safari"
activate
open location "http://www.slashdot.org/";
open location "http://www.sportsnet.ca/";
open location "http://news.com.com/";
end tell
--

here's the script that opens the sites

[Combine Windows]
--
tell application "Safari"
try
set the URL_list to the URL of every document
repeat with i from the (count of the the URL_list) to 2 by -1
set this_URL to item i of the URL_list
my new_tab()
set the URL of document 1 to this_URL
close window i
end repeat
on error the error_message number the error_number
display dialog the error_message buttons {"OK"} default button 1
end try
end tell

on new_tab()
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
click menu item "New Tab" of menu "File" of menu bar 1
end tell
end tell
end new_tab
--

can someone please help a newbie?

thanks!

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

  • Follow-Ups:
    • Re: NSReceiverEvalutationScriptError: 4
      • From: Rob Jorgensen <email@hidden>
    • Re: NSReceiverEvalutationScriptError: 4
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: POST format
  • Next by Date: Re: NSReceiverEvalutationScriptError: 4
  • Previous by thread: Re: OS X and Quark 4.11 - cant coerce rotation and scale info
  • Next by thread: Re: NSReceiverEvalutationScriptError: 4
  • Index(es):
    • Date
    • Thread