Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever 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 Jun 07, '07 04:03:39PM

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 | # ]