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

Re: NSReceiverEvalutationScriptError: 4


  • Subject: Re: NSReceiverEvalutationScriptError: 4
  • From: Andrew Oliver <email@hidden>
  • Date: Fri, 19 Sep 2003 06:55:30 -0700

Did you follow the installation instructions and turn on support for
assistive devices in Universal Access preferences? No? Oh well.

Andrew
:)

On 9/19/03 6:40 AM, "Chet Goetz" <email@hidden> wrote:

> 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.
_______________________________________________
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: Chet Goetz <email@hidden>
References: 
 >NSReceiverEvalutationScriptError: 4 (From: Chet Goetz <email@hidden>)

  • Prev by Date: NSReceiverEvalutationScriptError: 4
  • Next by Date: Re: NSReceiverEvalutationScriptError: 4
  • Previous by thread: NSReceiverEvalutationScriptError: 4
  • Next by thread: Re: NSReceiverEvalutationScriptError: 4
  • Index(es):
    • Date
    • Thread