Dumb question?

Am I missing something basic here?

I’ve a script that creates some files (and other stuff), and “ once finished - opens the files’ enclosing folder, and displays a dialog. It all works fine except that once the Finder is activated, and the script’s dialog pops up, the dialog is ‘in the background’ - ie, the script icon bounces in the dock, alerting me that the dialog is there, but the dialog is hidden behind all my windows.

Ironically, many of my apps ‘bring themselves to my attention’ when I don’t want them too. How can I get the dialog to come back to the fore once the script has run? Here’s the last bit of my code (before the subroutines) …

tell application "Finder"
	open bannerDestination
end tell

display dialog "Done." & return & "Use the file " & text_File & " to get the text for your web banners." giving up after 3

Thanks in advance.

Hi kevin,
try this:

tell application "Finder"
    open bannerDestination
activate
display dialog "Done." & return & "Use the file " & text_File & " to get the text for your web banners." giving up after 3
end tell

Thanks Joy “ works perfectly.

Seems the title of my post was pretty accurate!

Many thanks again.

It was a classically dumb subject line. :wink:

http://macscripter.net/guidelines.php