Re: Finder GUI Scripting
Re: Finder GUI Scripting
- Subject: Re: Finder GUI Scripting
- From: Emile Schwarz <email@hidden>
- Date: Wed, 03 Aug 2005 10:25:02 +0200
>>> Try to get the necessary window by using ‘window whose index is 1’
Does not works, but the behavior is... interesting.
With at last one open window, execute the following script:
tell application "Finder"
set position of window 1 to {0, 44}
end tell
then close that window by a click in its Close button,
open that window by a double click in its icon.
THE BUG IS HERE just like if I wrote:
tell application "Finder"
set position of window 1 to {0, 44}
end tell
the 'interesting' behavior is that with the first script, the window opens in
the 'default' location (screen centered).
In the later script, the window appears in its old position (position it has
before running the script).
THIS APPEARS RELIABILY SINCE April 28th, 2005: Mac OS X 10.4.
The more I use 10.4, the more it recalls me the original Apple IIgs OS (pre
GS/OS)... ans sometimes, Tigers runs worst than it... rainbow cursor appears
here and there for no apparent reason (just an example. [Tiger bug EARS#16384).
My list is very long...
email@hidden wrote:
Date: Tue, 2 Aug 2005 08:41:10 +0200
From: Vincent Claudic <email@hidden>
Subject: Re: Finder GUI Scripting
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="windows-1252"
Sorry Kai to haven't pay enough attention to the list concerning the
alreay defined "zoomed window bug".
Thank for you answer and al lthe best,
Vincent
Le 1 août 05 à 20:43, Barry Wainwright a écrit :
On 1/8/05 15:44, "Vincent Claudic" <email@hidden>
wrote:
Hello everybody,
just newcomer onto 10.4… Does someone already tried the following
which was working on 10.3 ?
tell application "Finder"
activate
set current view of Finder window frontmost to list view
if zoomed of Finder window frontmost is false then
set zoomed of Finder window frontmost to true
end if
end tell
--
Vincent
‘Frontmost’ seems to be somewhat broken in Tiger.
Yep
Try to get the necessary window by using ‘window whose index is 1’
Yes, you can try window 1, and once you've done that, come back here with the
same question and do not forget to add what you tried... :)
> tell application "Finder"
> activate
> set current view of Finder window frontmost to list view
As far as I can understand the above line, you set the current view for all
windows to list view :(
> if zoomed of Finder window frontmost is false then
> set zoomed of Finder window frontmost to true
Why are you using the 'Finder window frontmost' ? Is 'front window' not working
for you ?
Remember that you asked the application Finder to execute the code... (first two
lines).
> end if
> end tell
Sorry to feeling sad (in fact I feel angry *), but there are good (in fact not
bad, but worst) reasons to feel bad... I wrote that earlier: Mac OS X is the
worst OS I ever saw/used in the last 25 years :( and still is after two 'minor'
updates (.1 and .2)... and is worst than it was (in my mind) as the times goes
on (**) I discover more and more bugs and misfeats...
This is related to the OS in its integrality, not specific to AppleScript; thus
AppleScript have its misses too (read above, some other tweaks exists).
* other phrases you can place there:
become enraged, go into a rage, go berserk, flare up; informal go crazy, go
bananas, hit the roof, go through the roof, go up the wall, see red, go off the
deep end, fly off the handle, blow one's top, blow a fuse/gasket, flip out, have
a fit, foam at the mouth, explode, go ballistic, go postal, flip one's wig, blow
one's stack, have a conniption
** Open an UTF-8 encoded Text file using TextEdit (and select Open it as UTF-8
file/ using the UTF-8 encodings) , make changes to your document (and do not
forget to place non ASCII characters; characters whose values are 127 and
above), save the document using Command-S and you're done: close the document,
re-open it with UTF-8 encodings set in the Open dialog et voilà... the document
loosed its UTF-8 encoding...
_______________________________________________
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