Wednesday, January 24, 2018

#1 2013-04-29 11:37:40 am

jcarlosc
Member
Registered: 2013-04-18
Posts: 6

Display A Message

Hi, is there a way in Automator that I can display a message that informs the user that the process is done?

Thanks

Offline

 

#2 2013-05-07 12:11:40 am

McUsrII
Member
Registered: 2012-11-21
Posts: 3046
Website

Re: Display A Message

Hello.

You can add an Applescript action ath the end of your workflow with something like this: (You'll have to figure out what application is most suitable for displaying the dialog.

Applescript:

tell application "Finder"
   activate
   display dialog "The process is all done" buttons {"Ok"} default button 1
end tell

Last edited by McUsrII (2013-05-07 12:14:24 am)

Offline

 

#3 2013-06-17 07:42:59 pm

emendelson
Member
Registered: 2008-10-31
Posts: 354

Re: Display A Message

You can use System Events instead of the Finder to display the dialog; that way nothing comes to the front except the dialog.

Offline

 

#4 2013-06-18 09:17:09 am

McUsrII
Member
Registered: 2012-11-21
Posts: 3046
Website

Re: Display A Message

Hello.
I tried that, and it doesn't work for me on Snow Leopard, as it is then random whether it is shown, as System Events is a background application.

Offline

 

#5 2013-06-18 09:44:23 am

emendelson
Member
Registered: 2008-10-31
Posts: 354

Re: Display A Message

McUsrII wrote:

Hello.
I tried that, and it doesn't work for me on Snow Leopard, as it is then random whether it is shown, as System Events is a background application.


It seems to work reliably on Lion and Mountain Lion. Haven't tested it on Snow Leopard. Perhaps your script could decide which application to use depending on the OS version?

Offline

 

#6 2013-06-18 09:53:37 am

McUsrII
Member
Registered: 2012-11-21
Posts: 3046
Website

Re: Display A Message

Hello.

Current Application seems to work fine with me, and Snow Leopard.

Offline

 

#7 2013-06-18 09:54:30 am

emendelson
Member
Registered: 2008-10-31
Posts: 354

Re: Display A Message

I didn't know about Current Application - thank you!

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)