Re: Minimize work, but Maximizing Applications doesn't work
Re: Minimize work, but Maximizing Applications doesn't work
- Subject: Re: Minimize work, but Maximizing Applications doesn't work
- From: "J. Stewart" <email@hidden>
- Date: Sun, 12 Mar 2006 07:46:58 -0500
On 3/11/06 at -0500 deivy petrescu said this
>> set collapsed of window 1 to not collapsed of window 1 -- which
>> doesn't
>>
>> I agree with you though, effectively it SHOULD be the same. It
>> would appear that there may be a bug crawling around in the iTunes
>> implementation.
>>
>> There is one factor that might be making a difference. I did a
>> clean re-install of the OS (on the G5) last week due to a hard
>> drive failure. The OS was completely updated (10.4.5) before I re-
>> installed any other apps.
>>
>> JBS
>
>Actually your code does *not* work for me!
>While Paul's code works fine, I came to this kind of strange behaviour.
>Running this script in iTunes makes me a bit confuse.
><script>
>tell application "iTunes"
> set the collapsed of window 1 to true --> windows collapse
> tell window 1
> get the visible --> true ???
> get name
> set the visible to (get the visible) --> windows come back !!!
> end tell
>end tell
></script>
Deivy & Paul,
I never claimed it would. I also have found why it works here - Windowshade X, a haxie from Unsanity.com. With it disabled I get the same results as you. Here's why it's not functioning.
I ran this script with SD4's event log open
--> Script <--
tell application "iTunes"
get collapsed of window 1
set collapsed of window 1 to true
delay 0.5
get collapsed of window 1
set collapsed of window 1 to false
delay 0.5
get collapsed of window 1
set collapsed of window 1 to not collapsed of window 1
delay 0.5
get collapsed of window 1
end tell
--> /Script <--
Here's the resulting log entries with a few comments -
-- started
tell application "iTunes"
get collapsed of window 1
--> false
set collapsed of window 1 to true
get collapsed of window 1
--> true
set collapsed of window 1 to false
get collapsed of window 1
--> true -- ut oh!
get collapsed of window 1
--> true -- implied get from the toggle type of statement
set collapsed of window 1 to false
get collapsed of window 1
--> true -- again ut oh!
end tell
-- stopped
JBS
--
If Fed Ex and UPS were to merge, would they call it Fed UP? - George Carlin
_______________________________________________
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