• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Attivating the display dialog window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Attivating the display dialog window (From: Miky P <email@hidden>)

  • Prev by Date: Re: parsing a large text file
  • Next by Date: Re: Attivating the display dialog window
  • Previous by thread: Attivating the display dialog window
  • Next by thread: Re: Attivating the display dialog window
  • Index(es):
    • Date
    • Thread