Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Oops... | 11 comments | Create New Account
Click here to return to the 'Oops...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Oops...
Authored by: DougAdams on Nov 19, '03 02:15:33PM
My error.

set theURL to "http://www.google.com/search?hl=en&q=" & (the clipboard)

try -- Jaguar default browser
        tell application "Finder"
                open location theURL
        end tell
on error -- Panther default browser
        open location theURL
end try


[ Reply to This | # ]
Oops...
Authored by: THEM on Nov 19, '03 02:20:32PM

open location is in the standard additions, shouldn't need to be wrapped in a tell block.

---
--
The preceding message does not represent the views of the sender.



[ Reply to This | # ]
Oops...
Authored by: DougAdams on Nov 19, '03 04:25:56PM
open location is in the standard additions, shouldn't need to be wrapped in a tell block.

Of course you are correct. My example was from memory; from a situation where the default browser wouldn't activate in Jaguar unless the tell block was used.

[ Reply to This | # ]