I’m not sure it’s really considered an error as those types of messages appear in the system log all the time.
You could try “ignoring application responses” like this:
ignoring application responses
tell application "Safari"
activate
open location "http://www.bcfi.be"
tell application "Safari" to activate
end tell
end ignoring
BTW, if your user doesn’t use Safari as their default browser, they won’t be happy with you.
Thanks Kem, Tim and Dave.
I’m really surprised with the answer from Dave.
Wow, so easy and very simple.
And it works great !!!
Thanks you very, very much.
Eric : I gave the reason in my last post.
For my application I use the tip from Dave.
But I keep loving Applescript.
I also learned that sometimes, the solution is closer and easier without using Applescript.
Thanks for you all guys, for helping me so adequate and fast. You solved my problem.
[quote=81740:@Antoon Verleysen]I used that second ‘activate’ to give Safari the focus.
Without that, Safari was behind the window of my application.
But thanks anyway Eric[/quote]
Just to clarify, we weren’t saying the second “activate” was unnecessary, just using “tell application “Safari”” there. Once an application is the target (the first “tell”), you don’t have to use “tell” again for the same application.