Re: AS, wIP and 10.4.3: nothing's changed...
Re: AS, wIP and 10.4.3: nothing's changed...
- Subject: Re: AS, wIP and 10.4.3: nothing's changed...
- From: Dave Lyons <email@hidden>
- Date: Tue, 1 Nov 2005 14:50:30 -0800
As usual from 10.4 till today's 10.4.3 update, Apple was (it seems)
not able to solve the problem I've already described here:
The main problem is that setting the "bounds" or "position" of a
Finder window from AppleScript doesn't make the change "stick." This
bug is fixed for a *future* version of Finder, but it is very
unlikely to be fixed in any 10.4.x version.
However, there is a way to work around the problem by changing the
script. After setting the position or bounds of the window, change
the window's toolbar visible setting, and then change it back:
tell application "Finder"
set position of Finder window 1 to {2, 49}
set toolbar visible of Finder window 1 to not toolbar visible of
Finder window 1
set toolbar visible of Finder window 1 to not toolbar visible of
Finder window 1
end tell
The temporary change will, unfortunately, be visible to the
user...but at least it works.
In this case, there is no need for an additional Radar bug, but in
general I agree exactly with what Yvan KOENIG wrote: Always file a
Radar bug (at <http://bugreport.apple.com>, for example). Please
don't assume that just describing a problem on a mailing list is good
enough to get it fixed.
Cheers,
--Dave
On Nov 1, 2005, at 5:33 AM, Eugenio MORASSI wrote:
First of all you'll excuse my poor English, I'll try to make me
understand :)
As usual from 10.4 till today's 10.4.3 update, Apple was (it seems)
not able to solve the problem I've already described here:
I create 5 folders ("a","b","c","d","e") every of which inside the
first one and each other following in alphabetical order:
a
|
+- b
|
+- c
|
+- d
|
+- e
and I disposed their windows by hand in this way (one in the middle
of the Desktop and others on his corners):
_________________________________________________________
/ \
+----------------------------------------------------------+
| | | |
| c | | d |
| | | |
|-------+ +-------+ +-------+
| | | |
| | a | |
| | | |
|-------+ +-------+ +-------+
| | | |
| b | | e |
| | | |
+----------------------------------------------------------+
Launch Script Editor and choose Record a script.
While recording I disposed their windows as follows (in cascade):
__________________________________________________________
/ \
+-------+--------------------------------------------------+
|a | |
| +-------+ |
| |b | |
+-| +-------+ |
| | |c | |
| +-| +-------+ |
| | |d | |
| +-| +-------+ |
| | |e | |
| +-| | |
| | | |
+-------+-------+------------------------------------------+
and this was code recorded by Script Editor:
tell application "Finder"
activate
select window of desktop
select window of desktop
make new Finder window to folder "a" of folder "Desktop" of folder
"mora" of folder "Users" of startup disk
select Finder window 1
set position of Finder window 1 to {2, 49}
select Finder window 1
select Finder window 1
make new Finder window to folder "b" of folder "a" of folder
"Desktop" of folder "mora" of folder "Users" of startup disk
select Finder window 1
set position of Finder window 1 to {36, 72}
select Finder window 1
select Finder window 1
make new Finder window to folder "c" of folder "b" of folder "a"
of folder "Desktop" of folder "mora" of folder "Users" of startup disk
select Finder window 1
set position of Finder window 1 to {71, 93}
select Finder window 1
select Finder window 1
make new Finder window to folder "d" of folder "c" of folder "b"
of folder "a" of folder "Desktop" of folder "mora" of folder
"Users" of startup disk
select Finder window 1
set position of Finder window 1 to {105, 116}
select Finder window 1
select Finder window 1
make new Finder window to folder "e" of folder "d" of folder "c"
of folder "b" of folder "a" of folder "Desktop" of folder "mora" of
folder "Users" of startup disk
select Finder window 1
set position of Finder window 1 to {139, 137}
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
close Finder window 1
end tell
Windows are now disposed in cascade, and opening all of them result
in an expected way.
I go back to recorded script, and changed these values:
{2, 49} to {5, 50}
{36, 72} to {15, 60}
{71, 93} to {25, 70}
{105, 116} to {35, 80}
{139, 137} to {45, 90}
I save and Run the script, after giving folder windows their
original position (one in the middle of the Desktop and others on
his corners).
The script runs and exits normally and all seems working well.
But if I open these folders now, they are one in the middle of the
Desktop and others on his corners and NOT in cascade as expected.
With 10.4.3 nothing is changed about this bug.
On 10.3.x (x > 2) wIP ( http://www.roam.it/soft/wip/wip.html ) was
a good app, now remains an useless piece of recursive code.
A (compact) nothing to show about recursion and usefulness of AS to
our members...
E u g e n i o M O R A S S I
--
president & cofounder
R o a m. P o s s i b l e K n o w l e d g e
Mac Users for Free Software and Documentation
To Know More, visit us at http://www.roam.it
_______________________________________________
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