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:48:53 -0700 (PDT)
I'm afraid Preview is not scriptable and do not accept
commands. I think activate is not a standard command and is
not executed by Preview.
I've moved activate out of the tell Finder, so the target
of display is my script. This because activate opens also
the Finder window.
The dialog window is ok now but it happens a strange fact:
some fotos opens, some no. I cannot get why. I used a delay
at the end.
I open the foto, I display the dialog, I change the name
and close Preview. I thought that maybe the foto is closed
before it opens. I don't know.
It semees it works. I have to test better!
--- Andrew Oliver <email@hidden> wrote:
>
> On Jul 10, 2006, at 8:33 AM, Gary (Lists) wrote:
>
> > "Michelle Steiner" wrote:
> >
> >> On Jul 10, 2006, at 6:27 AM, Miky P wrote:
> >>
> >>> 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?
> >>
> >> Don't need to do that.
> >>
> >> Change the display dialog line to
> >>
> >> tell me to display dialog
> >
> > IMO, Emmanuel's Finder tell is a better solution,
> particularly for
> > a person
> > who says he is new to AppleScript. The variety of
> ambiguities
> > revolving
> > around 'me', given the context of script execution,
> might cause
> > headaches
> > without any real notion of a cure.
> >
> > Since the OP is doing Finder tasks, it makes since to
> be more clear
> > and to
> > tell the Finder to activate.
>
> Actually, from the OPs requirements it would be better
> for Preview to
> be activated before the display dialog.
>
> tell application "Preview"
> activate
> display dialog "blah blah blah with prompt "more blah"
> ...
> end tell
>
> That way the image window is visible, presumably a
> requirement to aid
> the user as to what the document is since he can see the
> image behind
> the display dialog window.
>
> Andrew
> :)
> _______________________________________________
> 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