Re: NSReceiverEvalutationScriptError: 4
Re: NSReceiverEvalutationScriptError: 4
- Subject: Re: NSReceiverEvalutationScriptError: 4
- From: Chet Goetz <email@hidden>
- Date: Fri, 19 Sep 2003 13:30:22 -0500
Andrew,
Thanks for pointing out the obvious. I remember seeing that in the read
me, but I hadn't done it. Once I checked the box, it worked like a
charm!
Thanks for putting up with a newbie!
-- chet
On Friday, September 19, 2003, at 08:55 AM, Andrew Oliver wrote:
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.