Re: Attivating the display dialog window
Re: Attivating the display dialog window
- Subject: Re: Attivating the display dialog window
- From: Miky P <email@hidden>
- Date: Tue, 11 Jul 2006 01:51:32 -0700 (PDT)
Marc, "Preview" is not a scriptable application!
--- Marc Myers <email@hidden> wrote:
> On Jul 10, 2006, at 1:53 PM, Miky P <email@hidden>
> wrote:
> > From: Miky P <email@hidden>
> > Subject: Attivating the display dialog window
> > To: email@hidden
> >
> > 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?
> >
> > Thanks, Miky
>
> Scripting additions work out of the current application.
> If you're
> running a script from Script Editor, that would be Script
> Editor. If
> you've made the script into an application, then it would
> be that
> application.
>
> The way to get around this is to call display dialog from
> within the
> tell block for the application in front of whose window
> you want it to
> appear.
>
> tell app "SomeApp"
> activate
> make new window
> display dialog "a dialog"
> end tell
>
> _______________________________________________
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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