Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Open any URL from any app with Butler and AppleScript' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Open any URL from any app with Butler and AppleScript
Authored by: jdm on Thu, Jun 7 2007 at 4:03PM PDT
If you wrap the display dialog in a "tell application" then the dialog will be brought to the front.

Here is my modification of the first couple of lines:

tell application "Finder"
display dialog "URL?" default answer "" buttons {"cancel", "open"} default button 2
set {text returned:theURL, button returned:okay} to result
end tell

if theURL is "" or okay is "cancel" then error number -128 -- cancel

[ Reply to This | # ]