Re: Display dialog + compiled scripts
Re: Display dialog + compiled scripts
- Subject: Re: Display dialog + compiled scripts
- From: Mr Tea <email@hidden>
- Date: Thu, 01 Aug 2002 01:54:40 +0100
This from Paul Berkowitz - dated 31-7-02 06.56 pm:
>
Is the problem that you don't know what the other app will be, necessarily?
>
No, the problem is that I've become fanatical about never putting anything
in a Finder 'tell' block unless it's absolutely 100 percent unavoidable.
That's right. This is your doing, Paul. :)
Actually, the question popped into my mind while I was overhauling a script
for finding & replacing in item names. The 'tell application "Finder" to
display dialog...' lines stick out like sore thumbs in a largely Finderless
script, and my desire to do away with them is only partially obsessive.
The script is triggered by a hot key and works on the contents of the
Finder's frontmost window. The DragThing dock that it's invoked from works
like an app-specific OneClick palette and is only visible/ attentive when
the Finder is frontmost, meaning that the Finder is always reliably up front
when the script runs. But... I frequently use 'SNAX' (a Finder-like utility)
for heavy duty stuff-sorting, and want to extend the reach of my DragThing
Finder-specific Dock to include SNAX - so it would be handy if the find &
replace script was application-agnostic.
It's a relatively simple matter to rewrite the script so that it checks the
frontmost app, but I was wondering if there was a system component that
could display the dialog instead. (I tried telling "SystemUIServer", but
that clearly wasn't the way to go.)
If this can't be done, it's not a major obstacle, but I do think it's an
omission of sorts. With the proliferation of apps that can run compiled
scripts, it would be extremely useful to have a system component that can be
called on to display dialogs over the frontmost app, or at least the
facility to have dialogs float right to the top. Then I would never again
have to face the misery of icons dancing frantically in the dock because
they need to show me something.
So, what this all comes down to is a feature request, I guess.
Mr Tea
(Striving every day in every way to script a little better)
--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.