Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Hide/show the iTunes Store in iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Hide/show the iTunes Store in iTunes
Authored by: Sesquipedalian on Sep 11, '10 09:17:15AM
I did misunderstand you. However, the script works exactly the same when run via Quicksilver as it does when run via any other method I have tried. It does define some variables that would be persistent, but nothing that persists does anything that matters.

Also, since this uses GUI scripting, the best general practice would be not to remember any values across executions, since the user may change something unexpected between executions.

[ Reply to This | # ]

Hide/show the iTunes Store in iTunes
Authored by: philostein on Sep 11, '10 10:35:44AM

Regarding GUI scripting, I agree it's not an ideal way to handle functions. But as the script checks if it's in the Store when run, and re-initializes the variables if not, I doubt much harm will come of any errors. It is possible, for example, to run the script, close the Store manually, change a bunch of windows, re-open the Store and then run the script again and have unexpected results - but I say that would be counter-intuitive.

When run from outside the Store, the persistent variables in the script remember which window was frontmost and whether the 'iTunes' window was minimized or not. Quicksilver doesn't remember these variables between uses of the script, whereas Spark does.

For example, have a video window frontmost in iTunes, run the script twice, and have the video frontmost again. Quicksilver (and iTunes) won't do this. (I know - it's not a big deal, but it bugs me!)

Update - I just saw your Quicksilver forum reply. QS runs the code instead of the script, so it won't remember any variables. Thanks! That's been bugging me for a while.

So, if anyone can come up with a better way to use and hide the Store (including Ping) without GUI scripting or the 10-step manual method, you know what to do…



[ Reply to This | # ]
Hide/show the iTunes Store in iTunes
Authored by: Sesquipedalian on Sep 11, '10 01:02:30PM

Well, I've tried several different ways of running the script while trying with your video clip example, and they all produce the same result. If the Store is enabled and a video is playing in a separate, front window, by the time the script is done, the video is still at the front. If the Store is disabled while the video is playing, the video ends up behind the main iTunes window. I tried to see if there was something special about the Spark app that you linked to, but that appears to a note-and-task manager, so I'm not sure how you were using it to do this.



[ Reply to This | # ]
Hide/show the iTunes Store in iTunes
Authored by: philostein on Sep 11, '10 06:51:21PM
Ha ha - nice one! Craig linked to a different Spark. The correct one is here.

Craig, could you change the original link? :D

For me, the script brings the Store window forward when opening/enabling the Store, and the video window forward when closing/disabling the Store. Your summary sounds like the complete opposite, which is puzzling. Anyone else find this?

[ Reply to This | # ]
Hide/show the iTunes Store in iTunes
Authored by: crarko on Sep 11, '10 08:05:29PM

Link fixed. :)



[ Reply to This | # ]