Re: Attivating the display dialog window
Re: Attivating the display dialog window
- Subject: Re: Attivating the display dialog window
- From: Emmanuel <email@hidden>
- Date: Mon, 10 Jul 2006 15:43:38 +0200
At 6:27 AM -0700 7/10/06, Miky P wrote:
Hi!
I'm new to Mac and to AppleScript.
I've made my first program and I have a problem I cannot
solve.
The script takes a list of files. For every file:
- opens the file (with Preview)
- asks the user a new name for the file (with display
dialog)
- renames the file
The problem is that it opens the first file, then displays
the dialog. For the second file the dialog is hidden.
Finder signals that it has a message and I have to click on
Finder to see the dialog window. I would like the dialog in
the front of all the windows.
My question: how can I controll the activation of the
windows. Where can I get the list of open window and
activate the one I like?
That's the job of the "activate" command. At some point in your
script you should insert:
tell application "Finder" to activate
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden